tests: add longer timeout for wallet encryption tests
This commit is contained in:
parent
35cd8135d4
commit
c711139a8b
@ -95,12 +95,14 @@ describe("Test Wallet Encryption", function() {
|
|||||||
let wallet: Wallet | HDNodeWallet = Wallet.createRandom();
|
let wallet: Wallet | HDNodeWallet = Wallet.createRandom();
|
||||||
|
|
||||||
it("encrypts a random wallet: sync", function() {
|
it("encrypts a random wallet: sync", function() {
|
||||||
|
this.timeout(30000);
|
||||||
const json = wallet.encryptSync(password);
|
const json = wallet.encryptSync(password);
|
||||||
const decrypted = Wallet.fromEncryptedJsonSync(json, password);
|
const decrypted = Wallet.fromEncryptedJsonSync(json, password);
|
||||||
assert.equal(decrypted.address, wallet.address, "address");
|
assert.equal(decrypted.address, wallet.address, "address");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("encrypts a random wallet: async", async function() {
|
it("encrypts a random wallet: async", async function() {
|
||||||
|
this.timeout(30000);
|
||||||
const json = await wallet.encrypt(password);
|
const json = await wallet.encrypt(password);
|
||||||
const decrypted = await Wallet.fromEncryptedJson(json, password);
|
const decrypted = await Wallet.fromEncryptedJson(json, password);
|
||||||
assert.equal(decrypted.address, wallet.address, "address");
|
assert.equal(decrypted.address, wallet.address, "address");
|
||||||
|
Loading…
Reference in New Issue
Block a user