Skip to content

Commit

Permalink
Fix - respect ContainerCustomizer in neo4j module
Browse files Browse the repository at this point in the history
  • Loading branch information
fhke committed Nov 5, 2023
1 parent d765502 commit 49ef5f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/neo4j/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func ExampleRunContainer() {
testPassword := "letmein!"

neo4jContainer, err := neo4j.RunContainer(ctx,
testcontainers.WithImage("docker.io/neo4j:15.2-alpine"),
testcontainers.WithImage("docker.io/neo4j:4.4"),
neo4j.WithAdminPassword(testPassword),
neo4j.WithLabsPlugin(neo4j.Apoc),
neo4j.WithNeo4jSetting("dbms.tx_log.rotation.size", "42M"),
Expand Down
5 changes: 1 addition & 4 deletions modules/neo4j/neo4j.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ func RunContainer(ctx context.Context, options ...testcontainers.ContainerCustom
return nil, err
}

container, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
ContainerRequest: request,
Started: true,
})
container, err := testcontainers.GenericContainer(ctx, genericContainerReq)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 49ef5f5

Please sign in to comment.