From 3344af86758a80b2014535cd2b6b5cad20ec5477 Mon Sep 17 00:00:00 2001 From: Juan Enrique Alcaraz Date: Tue, 26 Sep 2023 15:33:33 +0200 Subject: [PATCH] Fix activity tests --- jest.config.js | 2 +- test/activity.test.js | 18 ++++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/jest.config.js b/jest.config.js index 0c32cbfb..20acd43a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -8,6 +8,6 @@ module.exports = { '^~(.*)$': '/src$1', }, testEnvironment: 'node', - testTimeout: 30 * 1000, + testTimeout: 60 * 1000, verbose: true, }; diff --git a/test/activity.test.js b/test/activity.test.js index e29b1bc6..3616edfc 100644 --- a/test/activity.test.js +++ b/test/activity.test.js @@ -31,16 +31,14 @@ describe('Activity', () => { afterAll(() => provider.engine.stop()); beforeAll(async () => { - [safeAddress, otherSafeAddress] = await Promise.all([ - onboardAccountManually( - { account, nonce: generateSaltNonce() }, - core, - ).then(({ safeAddress }) => safeAddress), - onboardAccountManually( - { account: otherAccount, nonce: generateSaltNonce() }, - core, - ).then(({ safeAddress }) => safeAddress), - ]); + safeAddress = await onboardAccountManually( + { account, nonce: generateSaltNonce() }, + core, + ).then(({ safeAddress }) => safeAddress); + otherSafeAddress = await onboardAccountManually( + { account: otherAccount, nonce: generateSaltNonce() }, + core, + ).then(({ safeAddress }) => safeAddress); // .. and do some activity! await core.trust