Skip to content

Commit bef446a

Browse files
committed
wip: test nat mode
1 parent 8eb656e commit bef446a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/integration/helpers/helpers.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,10 @@ func createNeo4jContainer(ctx context.Context) (testcontainers.Container, string
415415
}
416416

417417
// On Windows, Docker doesn't support bridge networks for Linux containers
418-
// Use default network mode instead
418+
// Skip network creation by using host networking mode
419419
if runtime.GOOS == "windows" {
420-
req.NetworkMode = "default"
420+
req.NetworkMode = "nat"
421+
req.SkipReaper = true
421422
}
422423

423424
ctr, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{

0 commit comments

Comments
 (0)