mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Removed unecessarily long delay in a test
no issue - The delay is there to allow for the "IPC" (thread <-> process) communication to happen. Does not have to be this long in reality
This commit is contained in:
parent
be3a8db828
commit
8f95759b68
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ describe('Job Manager', function () {
|
|||
jobManager.bree.workers['will-send-msg'].postMessage('hello from Ghost!');
|
||||
|
||||
// Give time for worker (worker thread) <-> parent process (job manager) communication
|
||||
await delay(1000);
|
||||
await delay(100);
|
||||
|
||||
should(workerMessageHandlerSpy.called).be.true();
|
||||
should(workerMessageHandlerSpy.args[0][0].name).equal('will-send-msg');
|
||||
|
|
Loading…
Add table
Reference in a new issue