diff --git a/test/storage_test.js b/test/storage_test.js index 52161168dd9..e3d8a1b4417 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) {