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:
Javed Khan 2018-07-12 23:53:09 +05:30
parent b0155b663c
commit 944f29fe16
No known key found for this signature in database
GPG Key ID: 7E31745B904584E6

View File

@ -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);
}
});
});