Fix POW test
This commit is contained in:
parent
e99d76e670
commit
3b662af5ed
3
test.js
3
test.js
|
@ -284,7 +284,8 @@ describe("POW", function() {
|
||||||
this.timeout(120000);
|
this.timeout(120000);
|
||||||
return POW.do({workerUrl: "/base/worker.browserify.js", target: 10693764680411, initialHash: Buffer("8ff2d685db89a0af2e3dbfd3f700ae96ef4d9a1eac72fd778bbb368c7510cddda349e03207e1c4965bd95c6f7265e8f1a481a08afab3874eaafb9ade09a10880", "hex")})
|
return POW.do({workerUrl: "/base/worker.browserify.js", target: 10693764680411, initialHash: Buffer("8ff2d685db89a0af2e3dbfd3f700ae96ef4d9a1eac72fd778bbb368c7510cddda349e03207e1c4965bd95c6f7265e8f1a481a08afab3874eaafb9ade09a10880", "hex")})
|
||||||
.then(function(nonce) {
|
.then(function(nonce) {
|
||||||
expect(nonce).to.equal(2373146);
|
// Multiple valid nonces.
|
||||||
|
expect([2373146, 2543600]).to.include(nonce);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user