test: fix get block proof equivalent time
the test was randomly failing when getProofTime returns -0. Fixed by replacing strictEqual with ok.
This commit is contained in:
parent
b0155b663c
commit
944f29fe16
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user