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 9, 2022
1 parent 1b83a01 commit e0ad35e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Bree extends EventEmitter {
// pass in a callback function with following signature: `(error, workerMetadata) => { // custom handling here }`
errorHandler: null,
// Custom handler executed when a `message` event is received from a worker.
// A special 'done' even is also broadcasted while leaving worker shutdown logic in place.
// A special 'done' event is also broadcasted while leaving worker shutdown logic in place.
workerMessageHandler: null,
//
// if you set this to `true`, then a second arg is passed to log output
Expand Down
1 change: 1 addition & 0 deletions test/jobs/done.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const delay = require('delay');

if (parentPort) {
parentPort.postMessage('get ready');
await delay(10);
parentPort.postMessage('done');
}
})();

0 comments on commit e0ad35e

Please sign in to comment.