Increase timeout for signing test cases.

This commit is contained in:
Richard Moore 2018-06-03 05:02:52 -04:00
parent 1290fa0073
commit 63b2eae4f5
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

@ -200,6 +200,7 @@ describe('Test Signing Messages', function() {
tests.forEach(function(test) { tests.forEach(function(test) {
it(('signs a message "' + test.name + '"'), function() { it(('signs a message "' + test.name + '"'), function() {
this.timeout(1000000);
var wallet = new Wallet(test.privateKey); var wallet = new Wallet(test.privateKey);
var signature = wallet.signMessage(test.message); var signature = wallet.signMessage(test.message);
assert.equal(signature, test.signature, 'computes message signature'); assert.equal(signature, test.signature, 'computes message signature');
@ -208,6 +209,7 @@ describe('Test Signing Messages', function() {
tests.forEach(function(test) { tests.forEach(function(test) {
it(('verifies a message "' + test.name + '"'), function() { it(('verifies a message "' + test.name + '"'), function() {
this.timeout(1000000);
var address = Wallet.verifyMessage(test.message, test.signature); var address = Wallet.verifyMessage(test.message, test.signature);
assert.equal(address, test.address, 'verifies message signature'); assert.equal(address, test.address, 'verifies message signature');
}); });
@ -215,6 +217,7 @@ describe('Test Signing Messages', function() {
tests.forEach(function(test) { tests.forEach(function(test) {
it(('hashes a message "' + test.name + '"'), function() { it(('hashes a message "' + test.name + '"'), function() {
this.timeout(1000000);
var hash = Wallet.hashMessage(test.message); var hash = Wallet.hashMessage(test.message);
assert.equal(hash, test.messageHash, 'calculates message hash'); assert.equal(hash, test.messageHash, 'calculates message hash');
}); });