Skip to content

Commit 9b5833e

Browse files
test: fix
1 parent 6069a02 commit 9b5833e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/server/setupExitSignals-option.test.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@ describe('setupExitSignals option', () => {
5959

6060
it.each(signals)('should close and exit on %s', (signal, done) => {
6161
process.emit(signal);
62-
63-
setTimeout(() => {
62+
process.nextTick(() => {
6463
expect(killSpy.mock.calls.length).toEqual(1);
65-
expect(exitSpy.mock.calls.length).toEqual(1);
64+
6665
done();
67-
}, 1000);
66+
});
6867
});
6968
});

0 commit comments

Comments
 (0)