balena-supervisor/test/lib
Felipe Lalanne 4d74505087 Fix wait-for-it script to work with external signals
The wait-for-it script used during tests would setup a timer
that would send SIGUSR2 to the parent process after the timer ends.
Since node was ignoring additional signals, the timer ending would have
no effect after the node process had replaced the start script. However
when node has pid != 1, SIGUSR2 default behavior is to terminate the
process, meaning the tests would fail after 30 seconds.

The script is now updated so the timer is killed once the services are
ready for the tests.
2023-01-31 10:43:19 -03:00
..
dbus Setup environment for dbus tests 2022-10-17 11:24:15 -03:00
chai.ts Create test/unit and test/integration folders 2022-08-24 14:28:36 -04:00
db-helper.ts Update @balena/lint to 6.2.0 2022-09-19 16:41:28 +01:00
docker-helper.ts Add tests for doPurge action and v1/v2 app purge routes 2023-01-09 16:25:27 -08:00
errors.ts Update typed-error to 3.x 2020-08-19 10:07:54 +01:00
legacy-mocha-hooks.ts Migrate API tests to unit/integration 2022-10-25 19:06:39 +00:00
mocha-hooks.ts Migrate API tests to unit/integration 2022-10-25 19:06:39 +00:00
mocked-balena-api.ts Consolidate API middlewares, move api-keys to device-api 2022-10-18 14:16:53 -07:00
mocked-device-api.ts Use v2 router directly instead of through application manager 2022-10-18 14:16:53 -07:00
mocked-dockerode.ts Improve NotFoundError handling 2022-11-08 15:41:52 -08:00
mocked-iptables.ts Migrate firewall tests to integration 2022-10-19 14:09:45 -03:00
mockerode.ts Create default network as config-only when services have host networking 2022-11-16 10:19:36 -08:00
prepare.ts Update to typescript 4.8.2 2022-09-19 16:36:17 +01:00
state-helper.ts Update host-config, route, and action tests for host config endpoints 2023-01-11 15:48:13 -08:00
wait-for-it.sh Fix wait-for-it script to work with external signals 2023-01-31 10:43:19 -03:00