Skip to content

Commit

Permalink
chore(testcontainers): increase testTimeout 300 secs to cater for mor…
Browse files Browse the repository at this point in the history
…e complex playground tests (#2033)

#### What this PR does / why we need it:

As per title.

Also bumped testcontainers to 9.1.1 and removed testcontainers in
`apps/package.json`.
  • Loading branch information
fuxingloh authored Feb 5, 2023
1 parent 770cadd commit 2e22801
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 79 deletions.
1 change: 0 additions & 1 deletion apps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"@types/validator": "13.7.12",
"source-map-support": "0.5.21",
"supertest": "6.3.3",
"testcontainers": "8.16.0",
"ts-loader": "9.4.2",
"ts-node": "10.9.1",
"tsconfig-paths": "4.1.0"
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
},
verbose: true,
clearMocks: true,
testTimeout: 180000,
testTimeout: 300000,
testPathIgnorePatterns: [
'__sanity__'
],
Expand Down
96 changes: 21 additions & 75 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/testcontainers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dockerode": "^3.3.4",
"tar-fs": "^2.1.1",
"uuid": "^9.0.0",
"testcontainers": "^9.0.1"
"testcontainers": "^9.1.1"
},
"peerDependencies": {
"@types/tar-fs": "^2.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ export class StartedPlaygroundApiContainer extends AbstractStartedContainer {
})
const { data } = await response.json()
return data.details.playground.status === 'up'
}, timeout, 200, 'waitForIndexedBlockHeight')
}, timeout, 200, 'waitForReady')
}
}

0 comments on commit 2e22801

Please sign in to comment.