Commit c7e5ff6
committed
fix: stop tests from hanging CI (mocha --exit)
Importing the app's modules in tests transitively runs app() (Fastify listen +
scheduler crons), which keeps the Node event loop alive so mocha never exits.
The CI 'Run tests' step therefore hung until the 6h timeout and was cancelled,
so the push-on-production deploy job NEVER ran - no code had deployed for days
(this is why the meteo-alerts fixes appeared to have no effect). Add --exit so
mocha terminates after the run and the pipeline can reach the deploy step.1 parent d786137 commit c7e5ff6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments