Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/modules/kafka/src/kafka-container-7.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ describe("KafkaContainer", { timeout: 240_000 }, () => {
await using container = await new KafkaContainer(IMAGE).start();

await assertMessageProducedAndConsumed(container);

const { exitCode } = await container.exec([
"sh",
"-c",
"test -f /tmp/testcontainers_start.sh && test ! -f /testcontainers_start.sh",
]);

expect(exitCode).toBe(0);
});

it("should connect using in-built zoo-keeper and custom network", async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/modules/kafka/src/kafka-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const KAFKA_BROKER_PORT = 9092;
const KAFKA_CONTROLLER_PORT = 9094;
const DEFAULT_ZOOKEEPER_PORT = 2181;
const DEFAULT_CLUSTER_ID = "4L6g3nShT-eMCtK--X86sw";
const STARTER_SCRIPT = "/testcontainers_start.sh";
const STARTER_SCRIPT = "/tmp/testcontainers_start.sh";
const WAIT_FOR_SCRIPT_MESSAGE = "Waiting for script...";

// https://docs.confluent.io/platform/7.0.0/release-notes/index.html#ak-raft-kraft
Expand Down
Loading