Skip to content

Commit

Permalink
Fix activity tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juanenrisley committed Sep 26, 2023
1 parent 5730293 commit 3344af8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ module.exports = {
'^~(.*)$': '<rootDir>/src$1',
},
testEnvironment: 'node',
testTimeout: 30 * 1000,
testTimeout: 60 * 1000,
verbose: true,
};
18 changes: 8 additions & 10 deletions test/activity.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3344af8

Please sign in to comment.