Răsfoiți Sursa

allow flush to complete in acceptance test

Brian Gough 7 ani în urmă
părinte
comite
0f0682df43

+ 1 - 1
services/document-updater/test/acceptance/coffee/DeletingAProjectTests.coffee

@@ -148,7 +148,7 @@ describe "Deleting a project", ->
 						# after deleting the project and putting it in the queue, flush the queue
 						# after deleting the project and putting it in the queue, flush the queue
 						setTimeout () ->
 						setTimeout () ->
 							DocUpdaterClient.flushOldProjects (error, res, body) =>
 							DocUpdaterClient.flushOldProjects (error, res, body) =>
-								done()
+							setTimeout done, 1000 # allow time for the flush to complete
 						, 100
 						, 100
 				, 200
 				, 200