Skip to content

Commit 0742fd1

Browse files
Port is not guaranteed to be different on restart
1 parent 8ca9e3d commit 0742fd1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/modules/cockroachdb/src/cockroachdb-container.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ describe("CockroachDbContainer", () => {
8585

8686
it("should work with restarted container", async () => {
8787
const container = await new CockroachDbContainer().start();
88-
const port = container.getFirstMappedPort();
8988
await container.restart();
90-
expect(port).not.toEqual(container.getFirstMappedPort());
9189

9290
const client = new Client({
9391
host: container.getHost(),

0 commit comments

Comments
 (0)