From 55dc387d3c3c11221267c29a56339633169d6321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Thu, 5 Feb 2015 17:19:39 +0100 Subject: [PATCH] Fix random test fail --- test/api/screenshotHandlerTest.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/api/screenshotHandlerTest.js b/test/api/screenshotHandlerTest.js index 54127f3..c19d0e0 100644 --- a/test/api/screenshotHandlerTest.js +++ b/test/api/screenshotHandlerTest.js @@ -93,6 +93,7 @@ describe('screenshotHandler', function() { var tmpFolderPath = screenshot; screenshot.deleteTmpFile() + .delay(1000) .then(function() { fs.existsSync(screenshot.getTmpFolder().path).should.equal(false); done(); @@ -114,6 +115,7 @@ describe('screenshotHandler', function() { fs.existsSync(tmpImagePath).should.equal(true); screenshot.deleteTmpFile() + .delay(1000) .then(function() { fs.existsSync(tmpImagePath).should.equal(false); fs.existsSync(tmpFolderPath).should.equal(false);