healthAfterCreate property

List<HealthStatus> healthAfterCreate
getter/setter pair

What a container created through createContainer reports for health, in order, holding the last value once exhausted.

The fake does not run probes, so a test states what the probe would do. The default passes through starting once and then reports healthy, which is what Docker does when a probe starts succeeding. A test whose container must never become usable sets this to [HealthStatus.starting] so it stays there.

Implementation

List<HealthStatus> healthAfterCreate = const [
  HealthStatus.starting,
  HealthStatus.healthy,
];