Skip to content

Commit

Permalink
test: fix get block proof equivalent time
Browse files Browse the repository at this point in the history
the test was randomly failing when getProofTime returns -0. Fixed
by replacing strictEqual with ok.
  • Loading branch information
tuxcanfly committed Jul 12, 2018
1 parent b0155b6 commit 944f29f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pow-test.js
Expand Up @@ -82,7 +82,7 @@ describe('Difficulty', function() {
const p2 = blocks[random(blocks.length)];

const tdiff = chain.getProofTime(p1, p2);
assert.strictEqual(tdiff, p1.time - p2.time);
assert.ok(tdiff === p1.time - p2.time);
}
});
});

0 comments on commit 944f29f

Please sign in to comment.