diff --git a/modules/neo4j/examples_test.go b/modules/neo4j/examples_test.go index 4d31f00b95..23987e2e12 100644 --- a/modules/neo4j/examples_test.go +++ b/modules/neo4j/examples_test.go @@ -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"), diff --git a/modules/neo4j/neo4j.go b/modules/neo4j/neo4j.go index 62dd7e3763..1a7f3507bc 100644 --- a/modules/neo4j/neo4j.go +++ b/modules/neo4j/neo4j.go @@ -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 }