Skip to content

Commit

Permalink
Increase startup timeouts of Kafka/MySQL modules
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianrgreco committed Apr 18, 2023
1 parent 0b24813 commit 7074f7e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/modules/kafka/kafka-container.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as fs from "fs";
import * as path from "path";

describe("KafkaContainer", () => {
jest.setTimeout(300_000);
jest.setTimeout(360_000);

// connectBuiltInZK {
it("should connect using in-built zoo-keeper", async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/kafka/kafka-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class KafkaContainer extends GenericContainer {
constructor(image = KAFKA_IMAGE) {
super(image);

this.withExposedPorts(KAFKA_PORT).withStartupTimeout(240_000).withEnvironment({
this.withExposedPorts(KAFKA_PORT).withStartupTimeout(300_000).withEnvironment({
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "BROKER:PLAINTEXT,PLAINTEXT:PLAINTEXT",
KAFKA_INTER_BROKER_LISTENER_NAME: "BROKER",
KAFKA_BROKER_ID: "1",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/mysql/mysql-container.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createConnection } from "mysql2/promise";
import { MySqlContainer } from "./mysql-container";

describe("MySqlContainer", () => {
jest.setTimeout(180_000);
jest.setTimeout(240_000);

// connect {
it("should connect and execute query", async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/mysql/mysql-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class MySqlContainer extends GenericContainer {
MYSQL_USER: this.username,
MYSQL_PASSWORD: this.userPassword,
})
.withStartupTimeout(120_000);
.withStartupTimeout(180_000);

return new StartedMySqlContainer(
await super.start(),
Expand Down

0 comments on commit 7074f7e

Please sign in to comment.