Skip to content

Commit

Permalink
increase timeouts (#3814)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiebee authored Dec 11, 2020
1 parent 124b7c0 commit 27c9679
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
28 changes: 16 additions & 12 deletions test/e2e.method.signing.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,22 +394,26 @@ describe('transaction and message signing [ @E2E ]', function() {
// Smoke test to validate browserify's buffer polyfills (feross/buffer@5)
// A companion regression test for Webpack & feross/buffer@4.9.2 exists at:
// test/eth.accounts.webpack.js
it("encrypt then decrypt wallet", async function() {
this.timeout(10000);

const password = "qwerty";
const addressFromWallet = wallet[0].address;
it("encrypt then decrypt wallet", function(done) {
this.timeout(20000);
try {
const password = "qwerty";
const addressFromWallet = wallet[0].address;

const keystore = wallet.encrypt(password);
const keystore = wallet.encrypt(password);

// Wallet created w/ 10 accounts in before block
assert.equal(keystore.length, 10);
// Wallet created w/ 10 accounts in before block
assert.equal(keystore.length, 10);

wallet.decrypt(keystore, password);
assert.equal(wallet.length, 10);
wallet.decrypt(keystore, password);
assert.equal(wallet.length, 10);

const addressFromKeystore = wallet[0].address;
assert.equal(addressFromKeystore, addressFromWallet);
const addressFromKeystore = wallet[0].address;
assert.equal(addressFromKeystore, addressFromWallet);
done()
} catch(error) {
done(error)
}
});
});

1 change: 1 addition & 0 deletions test/eth.ens.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ describe('ens', function () {
});

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

prepareProviderForSetter(
Expand Down

1 comment on commit 27c9679

@aokiyap78
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

``

Please sign in to comment.