Skip to content

Commit f83c81a

Browse files
committed
chore(neo4j): simplify wait strategy setup
1 parent 27d5114 commit f83c81a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

modules/neo4j/neo4j.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,13 @@ func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustom
4646
defaultHTTPPort,
4747
defaultHTTPSPort,
4848
),
49-
testcontainers.WithWaitStrategy(&wait.MultiStrategy{
50-
Strategies: []wait.Strategy{
51-
wait.NewLogStrategy("Bolt enabled on"),
52-
&wait.HTTPStrategy{
53-
Port: defaultHTTPPort,
54-
StatusCodeMatcher: isHTTPOk(),
55-
},
49+
testcontainers.WithWaitStrategy(
50+
wait.NewLogStrategy("Bolt enabled on"),
51+
&wait.HTTPStrategy{
52+
Port: defaultHTTPPort,
53+
StatusCodeMatcher: isHTTPOk(),
5654
},
57-
}),
55+
),
5856
}
5957

6058
if len(opts) == 0 {

0 commit comments

Comments
 (0)