Skip to content

Commit

Permalink
added logs options argument to StartedGenericContainer.logs()
Browse files Browse the repository at this point in the history
  • Loading branch information
NuShoSinkuPomogliTebeTvoiSankcii committed Nov 13, 2023
1 parent ce7e4da commit 1b10307
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RestartOptions, StartedTestContainer, StopOptions, StoppedTestContainer } from "../test-container";
import Dockerode, { ContainerInspectInfo } from "dockerode";
import Dockerode, { ContainerInspectInfo, ContainerLogsOptions } from "dockerode";
import { ContentToCopy, DirectoryToCopy, ExecResult, FileToCopy, Labels } from "../types";
import { Readable } from "stream";
import { StoppedGenericContainer } from "./stopped-generic-container";
Expand Down Expand Up @@ -181,8 +181,9 @@ export class StartedGenericContainer implements StartedTestContainer {
return output;
}

public async logs(): Promise<Readable> {
public async logs(opts?: ContainerLogsOptions): Promise<Readable> {
const client = await getContainerRuntimeClient();
return client.container.logs(this.container);

return client.container.logs(this.container, opts);
}
}

0 comments on commit 1b10307

Please sign in to comment.