From 49ef5f5301baa6da08cf1127f44b4cfae582643a Mon Sep 17 00:00:00 2001 From: Fergal Kearns Date: Sun, 5 Nov 2023 15:00:16 +0000 Subject: [PATCH] Fix - respect ContainerCustomizer in neo4j module --- modules/neo4j/examples_test.go | 2 +- modules/neo4j/neo4j.go | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) 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 }