Skip to content

Commit bac0fa0

Browse files
Minor fixes (#937)
1 parent dc96299 commit bac0fa0

File tree

40 files changed

+222
-212
lines changed

40 files changed

+222
-212
lines changed

package-lock.json

Lines changed: 164 additions & 163 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"devDependencies": {
2121
"@eslint/js": "^9.22.0",
2222
"@eslint/json": "^0.11.0",
23-
"@vitest/coverage-v8": "^3.0.8",
23+
"@vitest/coverage-v8": "v3.1.0-beta.1",
2424
"cross-env": "^7.0.3",
2525
"eslint": "^9.22.0",
2626
"eslint-config-prettier": "^10.1.1",
@@ -35,7 +35,7 @@
3535
"ts-node": "^10.9.2",
3636
"typescript": "^4.9.5",
3737
"typescript-eslint": "^8.26.1",
38-
"vitest": "^3.0.8"
38+
"vitest": "v3.1.0-beta.1"
3939
},
4040
"lint-staged": {
4141
"packages/**/*.ts": [

packages/modules/arangodb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"homepage": "https://github.com/testcontainers/testcontainers-node#readme",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/testcontainers/testcontainers-node"
15+
"url": "git+https://github.com/testcontainers/testcontainers-node.git"
1616
},
1717
"bugs": {
1818
"url": "https://github.com/testcontainers/testcontainers-node/issues"

packages/modules/azurecosmosdb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"homepage": "https://github.com/testcontainers/testcontainers-node#readme",
1515
"repository": {
1616
"type": "git",
17-
"url": "https://github.com/testcontainers/testcontainers-node"
17+
"url": "git+https://github.com/testcontainers/testcontainers-node.git"
1818
},
1919
"bugs": {
2020
"url": "https://github.com/testcontainers/testcontainers-node/issues"

packages/modules/azurite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"homepage": "https://github.com/testcontainers/testcontainers-node#readme",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/testcontainers/testcontainers-node"
15+
"url": "git+https://github.com/testcontainers/testcontainers-node.git"
1616
},
1717
"bugs": {
1818
"url": "https://github.com/testcontainers/testcontainers-node/issues"

packages/modules/cassandra/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"homepage": "https://github.com/testcontainers/testcontainers-node#readme",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/testcontainers/testcontainers-node"
15+
"url": "git+https://github.com/testcontainers/testcontainers-node.git"
1616
},
1717
"bugs": {
1818
"url": "https://github.com/testcontainers/testcontainers-node/issues"

packages/modules/cassandra/src/cassandra-container.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AbstractStartedContainer, GenericContainer, type StartedTestContainer } from "testcontainers";
1+
import { AbstractStartedContainer, GenericContainer, Wait, type StartedTestContainer } from "testcontainers";
22

33
const CASSANDRA_PORT = 9042;
44

@@ -10,7 +10,7 @@ export class CassandraContainer extends GenericContainer {
1010

1111
constructor(image = "cassandra:5.0.2") {
1212
super(image);
13-
this.withExposedPorts(CASSANDRA_PORT).withStartupTimeout(120_000);
13+
this.withExposedPorts(CASSANDRA_PORT).withWaitStrategy(Wait.forHealthCheck()).withStartupTimeout(120_000);
1414
}
1515

1616
public withDatacenter(dc: string): this {
@@ -44,7 +44,20 @@ export class CassandraContainer extends GenericContainer {
4444
CASSANDRA_PASSWORD: this.password,
4545
CASSANDRA_SNITCH: "GossipingPropertyFileSnitch",
4646
CASSANDRA_ENDPOINT_SNITCH: "GossipingPropertyFileSnitch",
47+
CASSANDRA_NUM_TOKENS: "1",
48+
JVM_EXTRA_OPTS: "-Dcassandra.skip_wait_for_gossip_to_settle=0 -Dcassandra.initial_token=0",
4749
});
50+
if (!this.healthCheck) {
51+
this.withHealthCheck({
52+
test: [
53+
"CMD-SHELL",
54+
`cqlsh -u ${this.username} -p ${this.password} -e "SELECT release_version FROM system.local;"`,
55+
],
56+
interval: 250,
57+
timeout: 1000,
58+
retries: 1000,
59+
});
60+
}
4861
return new StartedCassandraContainer(await super.start(), this.dc, this.rack, this.username, this.password);
4962
}
5063
}

packages/modules/chromadb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"homepage": "https://github.com/testcontainers/testcontainers-node#readme",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/testcontainers/testcontainers-node"
15+
"url": "git+https://github.com/testcontainers/testcontainers-node.git"
1616
},
1717
"bugs": {
1818
"url": "https://github.com/testcontainers/testcontainers-node/issues"

packages/modules/cockroachdb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"homepage": "https://github.com/testcontainers/testcontainers-node#readme",
1414
"repository": {
1515
"type": "git",
16-
"url": "https://github.com/testcontainers/testcontainers-node"
16+
"url": "git+https://github.com/testcontainers/testcontainers-node.git"
1717
},
1818
"bugs": {
1919
"url": "https://github.com/testcontainers/testcontainers-node/issues"

packages/modules/couchbase/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"homepage": "https://github.com/testcontainers/testcontainers-node#readme",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/testcontainers/testcontainers-node"
15+
"url": "git+https://github.com/testcontainers/testcontainers-node.git"
1616
},
1717
"bugs": {
1818
"url": "https://github.com/testcontainers/testcontainers-node/issues"

0 commit comments

Comments
 (0)