Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 27c9679

Browse files
authored
increase timeouts (#3814)
1 parent 124b7c0 commit 27c9679

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

test/e2e.method.signing.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -394,22 +394,26 @@ describe('transaction and message signing [ @E2E ]', function() {
394394
// Smoke test to validate browserify's buffer polyfills (feross/buffer@5)
395395
// A companion regression test for Webpack & feross/[email protected] exists at:
396396
// test/eth.accounts.webpack.js
397-
it("encrypt then decrypt wallet", async function() {
398-
this.timeout(10000);
399-
400-
const password = "qwerty";
401-
const addressFromWallet = wallet[0].address;
397+
it("encrypt then decrypt wallet", function(done) {
398+
this.timeout(20000);
399+
try {
400+
const password = "qwerty";
401+
const addressFromWallet = wallet[0].address;
402402

403-
const keystore = wallet.encrypt(password);
403+
const keystore = wallet.encrypt(password);
404404

405-
// Wallet created w/ 10 accounts in before block
406-
assert.equal(keystore.length, 10);
405+
// Wallet created w/ 10 accounts in before block
406+
assert.equal(keystore.length, 10);
407407

408-
wallet.decrypt(keystore, password);
409-
assert.equal(wallet.length, 10);
408+
wallet.decrypt(keystore, password);
409+
assert.equal(wallet.length, 10);
410410

411-
const addressFromKeystore = wallet[0].address;
412-
assert.equal(addressFromKeystore, addressFromWallet);
411+
const addressFromKeystore = wallet[0].address;
412+
assert.equal(addressFromKeystore, addressFromWallet);
413+
done()
414+
} catch(error) {
415+
done(error)
416+
}
413417
});
414418
});
415419

test/eth.ens.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ describe('ens', function () {
148148
});
149149

150150
it('should set the owner record for a name', async function () {
151+
this.timeout(10000);
151152
const signature = 'setOwner(bytes32,address)';
152153

153154
prepareProviderForSetter(

0 commit comments

Comments
 (0)