From 4e9c25a1dd6e723b11685f0e91663f91d96f73b9 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Sun, 12 Jun 2016 15:58:33 -0400 Subject: [PATCH] Fix sporadic race condition in update notifier test suite (#476) We rely on a millisecond to determine the state of the update notifier logic, which can fail at least once per 50 builds or so. We increase the time difference to account for this little room for error. Signed-off-by: Juan Cruz Viotti --- tests/gui/components/update-notifier.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gui/components/update-notifier.spec.js b/tests/gui/components/update-notifier.spec.js index 62c30ea9..8d6fe3ae 100644 --- a/tests/gui/components/update-notifier.spec.js +++ b/tests/gui/components/update-notifier.spec.js @@ -73,7 +73,7 @@ describe('Browser: UpdateNotifier', function() { describe('given the `lastUpdateNotify` was updated long ago', function() { beforeEach(function() { - SettingsModel.data.lastUpdateNotify = Date.now() + UPDATE_NOTIFIER_SLEEP_TIME + 1; + SettingsModel.data.lastUpdateNotify = Date.now() + UPDATE_NOTIFIER_SLEEP_TIME + 1000; }); it('should return true', function() {