From c10e1b4ad0c744311fb1cb86ed891f92da2f1d39 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Mon, 3 Jul 2017 15:16:52 -0700 Subject: [PATCH] Code coverage test run: Fix broken test This test failed only under code coverage runs - because start up of the page too took long! FREEBIE --- test/storage_test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/storage_test.js b/test/storage_test.js index 52161168d..e3d8a1b44 100644 --- a/test/storage_test.js +++ b/test/storage_test.js @@ -189,8 +189,9 @@ describe("SignalProtocolStore", function() { record.save({ firstUse: false }).then(function() { done(); }); }); describe('If nonblocking approval is required', function() { - var now = Date.now(); + var now; before(function(done) { + now = Date.now(); record.save({ timestamp: now }).then(function() { done(); }); }); it('sets non-blocking approval', function(done) {