-
-
Notifications
You must be signed in to change notification settings - Fork 251
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Expected Behaviour
I'm one of the maintainer of ArcadeDB where some time ago we added some integration tests using TC for node to test our PgSQL endpoint.
Tests are running fine with 10.28.0 version of TC and we expect that they could run fine with 11.x version
Actual Behaviour
Actually, with 11.x versions, the container is started BUT it is not reachable by test code
Testcontainer Logs
console.log
testcontainers [DEBUG] [78555ed063d7] Created container for image "arcadedata/arcadedb:latest" +42ms
at Logger.debug [as logger] (node_modules/debug/src/common.js:113:10)
console.log
testcontainers [INFO] [78555ed063d7] Starting container for image "arcadedata/arcadedb:latest"... +0ms
at Logger.debug [as logger] (node_modules/debug/src/common.js:113:10)
console.log
testcontainers [DEBUG] [78555ed063d7] Starting container... +0ms
at Logger.debug [as logger] (node_modules/debug/src/common.js:113:10)
console.log
testcontainers [DEBUG] [78555ed063d7] Started container +100ms
at Logger.debug [as logger] (node_modules/debug/src/common.js:113:10)
console.log
testcontainers [INFO] [78555ed063d7] Started container for image "arcadedata/arcadedb:latest" +0ms
at Logger.debug [as logger] (node_modules/debug/src/common.js:113:10)
console.log
testcontainers [DEBUG] [78555ed063d7] Waiting for container to be ready... +6ms
at Logger.debug [as logger] (node_modules/debug/src/common.js:113:10)
console.log
testcontainers [DEBUG] [78555ed063d7] Waiting for HTTP... +1ms
at Logger.debug [as logger] (node_modules/debug/src/common.js:113:10)
FAIL src/js-pg-e2e.test.js (60.392 s)
● E2E tests using pg client › should run simple query
thrown: "Exceeded timeout of 60000 ms for a hook.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
8 | let postgresClient;
9 |
> 10 | beforeAll(async () => {
| ^
11 | arcadedbContainer = await new GenericContainer("arcadedata/arcadedb:latest")
12 | .withExposedPorts(2480, 6379, 5432, 8182)
13 | .withEnvironment({
at beforeAll (src/js-pg-e2e.test.js:10:3)
at Object.describe (src/js-pg-e2e.test.js:4:1)
Steps to Reproduce
test code: https://github.com/ArcadeData/arcadedb/tree/main/e2e-js
test run on dependabot pr: https://github.com/ArcadeData/arcadedb/actions/runs/16098018018/job/45423514968?pr=2333
Environment Information
- Operating System: linux and mac
- Docker Version:
- Node version: 22
- Testcontainers version: 11.x (works fine until 10.28.0)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working