Skip to content

Commit d994641

Browse files
committed
Linted and formatted
1 parent 621ff39 commit d994641

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

packages/testcontainers/src/wait-strategies/log-wait-strategy.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ describe("LogWaitStrategy", { timeout: 180_000 }, () => {
5555
expect(await getRunningContainerNames()).not.toContain(containerName);
5656
});
5757

58-
5958
it("should throw an error if the message is never received", async () => {
6059
const containerName = `container-${new RandomUuid().nextUuid()}`;
6160

@@ -72,7 +71,11 @@ describe("LogWaitStrategy", { timeout: 180_000 }, () => {
7271

7372
it("does not matter if container does not send all content in a single line", async () => {
7473
const container = await new GenericContainer("cristianrgreco/testcontainer:1.1.14")
75-
.withCommand(["node", "-e", "process.stdout.write('Hello '); setTimeout(() => process.stdout.write('World\\n'), 2000)"])
74+
.withCommand([
75+
"node",
76+
"-e",
77+
"process.stdout.write('Hello '); setTimeout(() => process.stdout.write('World\\n'), 2000)",
78+
])
7679
.withWaitStrategy(Wait.forLogMessage("Hello World"))
7780
.start();
7881

packages/testcontainers/src/wait-strategies/log-wait-strategy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type Log = string;
1010
export class LogWaitStrategy extends AbstractWaitStrategy {
1111
constructor(
1212
private readonly message: Log | RegExp,
13-
private readonly times: number,
13+
private readonly times: number
1414
) {
1515
super();
1616
}
@@ -49,4 +49,4 @@ export class LogWaitStrategy extends AbstractWaitStrategy {
4949
log.error(message, { containerId });
5050
throw new Error(message);
5151
}
52-
}
52+
}

0 commit comments

Comments
 (0)