You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was playing around with this repo and a found that the tests are failing on Windows:
verbose test report
λ yarn test
yarn run v1.3.2
$ mocha lib/**/*.spec.js && npm run test-typings
Terminus
1) runs onSigterm when getting the SIGTERM signal
2) runs onShutdown after onSigterm
3) runs onSigint when getting SIGINT signal
4) runs onShutdown after onSigint
supports onHealthcheck for the healthcheck route
√ but keeps all the other endpoints
√ returns 200 on resolve
√ returns 503 on reject
3 passing (1s)
4 failing
1) Terminus
runs onSigterm when getting the SIGTERM signal:
AssertionError: expected '' to deeply equal 'on-sigterm-runs'
+ expected - actual
+on-sigterm-runs
at Context.ex (lib\terminus.spec.js:89:46)
2) Terminus
runs onShutdown after onSigterm:
AssertionError: expected '' to deeply equal 'on-sigterm-runs\non-shutdown-runs'
+ expected - actual
+on-sigterm-runs
+on-shutdown-runs
at Context.ex (lib\terminus.spec.js:100:46)
3) Terminus
runs onSigint when getting SIGINT signal:
AssertionError: expected '' to deeply equal 'on-sigint-runs'
+ expected - actual
+on-sigint-runs
at Context.ex (lib\terminus.spec.js:111:46)
4) Terminus
runs onShutdown after onSigint:
AssertionError: expected '' to deeply equal 'on-sigint-runs\non-shutdown-runs'
+ expected - actual
+on-sigint-runs
+on-shutdown-runs
at Context.ex (lib\terminus.spec.js:122:46)
error Command failed with exit code 4.
I tried to dig into this a bit and found that the whole concept of SIGTERM is not supported on Windows.
Short story: you can expect SIGINT to work now, as well as SIGBREAK and to some extent SIGHUP. However SIGTERM will never work because killing a process in the task manager is unconditional, e.g. there's no way for an application to detect or prevent it.
I was playing around with this repo and a found that the tests are failing on Windows:
verbose test report
I tried to dig into this a bit and found that the whole concept of
SIGTERM
is not supported on Windows.Also see nodejs/node#12378.
So can I make a PR which updates the documentation for lack of support on Windows due to inherent OS limitations?
The text was updated successfully, but these errors were encountered: