Skip to content

Commit

Permalink
Code coverage test run: Fix broken test
Browse files Browse the repository at this point in the history
This test failed only under code coverage runs - because start up of the
page too took long!

FREEBIE
  • Loading branch information
scottnonnenberg committed Aug 4, 2017
1 parent 5c990d2 commit c10e1b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/storage_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c10e1b4

Please sign in to comment.