balena-supervisor/test/unit
Christina Ying Wang 2537eb8189 Handle the case of 'on-failure' restart policy
As explained in the comments of this commit, a container with the restart policy
of 'on-failure' with a non-zero exit code matches the conditions for the race, so
the Supervisor will also attempt to start it. A container with the 'no' restart
policy that has been started once will not be started again. If a container with
'no' has never been started, its service status will be 'Installed' and the Supervisor
will already try to start it until success, so the service with 'no' doesn't require
special handling.

Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-06-05 11:05:58 -07:00
..
compose Handle the case of 'on-failure' restart policy 2023-06-05 11:05:58 -07:00
config Migrate all device config tests to integration. 2022-11-14 11:12:52 -03:00
device-api Update host-config, route, and action tests for host config endpoints 2023-01-11 15:48:13 -08:00
lib Fix sw.arch typo when testing contracts 2023-05-11 13:07:26 -04:00
.mocharc.js Disable logs globally using mocha hooks 2022-09-28 10:37:41 -03:00
network.spec.ts Migrate simple legacy tests to test/unit and test/integration 2022-10-18 20:36:53 -03:00
types.spec.ts Fix withDefault type helper to work with boolean 2022-09-13 20:08:32 +00:00