Skip to content

Commit

Permalink
test: stability improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowgate15 committed Mar 15, 2022
1 parent 594328b commit b520022
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/jobs/message.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const process = require('process');
const { parentPort } = require('worker_threads');

const delay = require('delay');

setInterval(() => {}, 10);

if (parentPort) {
Expand All @@ -12,6 +14,6 @@ if (parentPort) {
}

parentPort.postMessage(message);
process.exit(0);
delay(10).then(() => process.exit(0));
});
}

0 comments on commit b520022

Please sign in to comment.