0
Fork 0
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:
Naz 2022-07-28 13:17:10 +01:00
parent be3a8db828
commit 8f95759b68

View file

@ -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');