mirror of
https://github.com/Mintplex-Labs/bree.git
synced 2026-07-19 21:43:30 -04:00
test: stability improvement
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
const process = require('process');
|
||||
const { parentPort } = require('worker_threads');
|
||||
|
||||
const delay = require('delay');
|
||||
|
||||
setInterval(() => {}, 10);
|
||||
|
||||
if (parentPort) {
|
||||
@@ -12,6 +14,6 @@ if (parentPort) {
|
||||
}
|
||||
|
||||
parentPort.postMessage(message);
|
||||
process.exit(0);
|
||||
delay(10).then(() => process.exit(0));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user