From 944f29fe16fb776d3e81ed0e1267786c3400bf98 Mon Sep 17 00:00:00 2001 From: Javed Khan Date: Thu, 12 Jul 2018 23:53:09 +0530 Subject: [PATCH] test: fix get block proof equivalent time the test was randomly failing when getProofTime returns -0. Fixed by replacing strictEqual with ok. --- test/pow-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pow-test.js b/test/pow-test.js index d833c527..bd2707f5 100644 --- a/test/pow-test.js +++ b/test/pow-test.js @@ -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); } }); });