mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 14:19:01 +02:00
modify DispatchManager test to allow for slow shutdown
This commit is contained in:
+10
-8
@@ -63,11 +63,13 @@ describe "DispatchManager", ->
|
||||
|
||||
|
||||
@worker.run()
|
||||
|
||||
setTimeout () =>
|
||||
@worker._waitForUpdateThenDispatchWorker.callCount.should.equal 3
|
||||
done()
|
||||
, 100
|
||||
|
||||
|
||||
|
||||
|
||||
checkStatus = () =>
|
||||
if not @settings.shuttingDown # retry until shutdown
|
||||
setTimeout checkStatus, 100
|
||||
return
|
||||
else
|
||||
@worker._waitForUpdateThenDispatchWorker.callCount.should.equal 3
|
||||
done()
|
||||
|
||||
checkStatus()
|
||||
|
||||
Reference in New Issue
Block a user