Increase timeout for signing test cases.

This commit is contained in:
Richard Moore 2018-06-03 04:59:53 -04:00
parent ac82a5cb83
commit 0b34aea23a
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) {
it(('signs a message "' + test.name + '"'), function() {
this.timeout(1000000);
var wallet = new Wallet(test.privateKey);
var signature = wallet.signMessage(test.message);
assert.equal(signature, test.signature, 'computes message signature');
@ -208,6 +209,7 @@ describe('Test Signing Messages', function() {
tests.forEach(function(test) {
it(('verifies a message "' + test.name + '"'), function() {
this.timeout(1000000);
var address = Wallet.verifyMessage(test.message, test.signature);
assert.equal(address, test.address, 'verifies message signature');
});
@ -215,6 +217,7 @@ describe('Test Signing Messages', function() {
tests.forEach(function(test) {
it(('hashes a message "' + test.name + '"'), function() {
this.timeout(1000000);
var hash = Wallet.hashMessage(test.message);
assert.equal(hash, test.messageHash, 'calculates message hash');
});