Skip to content

Commit 28f54e2

Browse files
authored
test: increment default timeout for modules (openwallet-foundation#1069)
Signed-off-by: Ariel Gentile <[email protected]>
1 parent 76dab16 commit 28f54e2

File tree

8 files changed

+12
-6
lines changed

8 files changed

+12
-6
lines changed

Diff for: DEVREADME.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ GENESIS_TXN_PATH=network/genesis/local-genesis.txn TEST_AGENT_PUBLIC_DID_SEED=00
7676
Locally, you might want to run the tests without postgres tests. You can do that by ignoring the tests:
7777

7878
```sh
79-
yarn test --testPathIgnorePatterns ./packages/core/tests/postgres.test.ts -u
79+
yarn test --testPathIgnorePatterns ./packages/core/tests/postgres.e2e.test.ts -u
8080
```
8181

8282
In case you run into trouble running the tests, e.g. complaining about snapshots not being up-to-date, you can try and remove the data stored for the indy-client. On a Unix system with default setup you achieve this by running:

Diff for: packages/action-menu/jest.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const config: Config.InitialOptions = {
88
...base,
99
name: packageJson.name,
1010
displayName: packageJson.name,
11+
setupFilesAfterEnv: ['./tests/setup.ts'],
1112
}
1213

1314
export default config

Diff for: packages/action-menu/tests/setup.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import 'reflect-metadata'
2+
3+
jest.setTimeout(20000)

Diff for: packages/question-answer/jest.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const config: Config.InitialOptions = {
88
...base,
99
name: packageJson.name,
1010
displayName: packageJson.name,
11+
setupFilesAfterEnv: ['./tests/setup.ts'],
1112
}
1213

1314
export default config

Diff for: packages/question-answer/tests/setup.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import 'reflect-metadata'
2+
3+
jest.setTimeout(20000)

Diff for: packages/tenants/tests/setup.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
import 'reflect-metadata'
2+
3+
jest.setTimeout(20000)

Diff for: packages/tenants/tests/tenant-sessions.e2e.test.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import testLogger from '../../core/tests/logger'
77

88
import { TenantsModule } from '@aries-framework/tenants'
99

10-
jest.setTimeout(2000000)
11-
1210
const agentConfig: InitConfig = {
1311
label: 'Tenant Agent 1',
1412
walletConfig: {
@@ -25,7 +23,7 @@ const agent = new Agent({
2523
config: agentConfig,
2624
dependencies: agentDependencies,
2725
modules: {
28-
tenants: new TenantsModule(),
26+
tenants: new TenantsModule({ sessionAcquireTimeout: 10000 }),
2927
},
3028
})
3129

Diff for: packages/tenants/tests/tenants.e2e.test.ts

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import testLogger from '../../core/tests/logger'
99

1010
import { TenantsModule } from '@aries-framework/tenants'
1111

12-
jest.setTimeout(2000000)
13-
1412
const agent1Config: InitConfig = {
1513
label: 'Tenant Agent 1',
1614
walletConfig: {

0 commit comments

Comments
 (0)