chore(test): nest the close({ timeoutMs }) case inside its describe block
CI / dco (push) Has been skipped
CI / dco (pull_request) Successful in 4s
CI / build (push) Successful in 35s
CI / build (pull_request) Successful in 34s

The test landed one line below the closing brace of describe('graceful
shutdown'), so it ran at the top level instead of under the block it
belongs to. Placement only; the assertions are untouched.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-08-12 13:34:07 -05:00
1 parent 3dcf784159
commit 9d95260706
1 file changed
+2 -2
+2 -2
View File
@@ -464,9 +464,8 @@ describe('graceful shutdown', () => {
await expect(fetch(`http://127.0.0.1:${port}/ticks`).then((r) => r.text())).rejects.toThrow(); await expect(fetch(`http://127.0.0.1:${port}/ticks`).then((r) => r.text())).rejects.toThrow();
reader.cancel().catch(() => {}); reader.cancel().catch(() => {});
}); });
});
it('close({ timeoutMs }) forces shutdown when a handler never responds', async () => { it('close({ timeoutMs }) forces shutdown when a handler never responds', async () => {
@Route('/') @Route('/')
class Ctl { class Ctl {
@Get('/hang') hang() { @Get('/hang') hang() {
@@ -485,6 +484,7 @@ it('close({ timeoutMs }) forces shutdown when a handler never responds', async (
const start = Date.now(); const start = Date.now();
await app.close({ timeoutMs: 300 }); await app.close({ timeoutMs: 300 });
expect(Date.now() - start).toBeLessThan(600); expect(Date.now() - start).toBeLessThan(600);
});
}); });
describe('overrides', () => { describe('overrides', () => {