Skip to content

Commit aa7ddc0

Browse files
authored
Fix reuse support for CouchbaseContainer (#9957)
Fixes #2794
1 parent 2fa7f65 commit aa7ddc0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

modules/couchbase/src/main/java/org/testcontainers/couchbase/CouchbaseContainer.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,13 @@ private void exposePorts() {
341341
}
342342
}
343343

344+
@Override
345+
protected void containerIsStarting(InspectContainerResponse containerInfo, boolean reused) {
346+
if (!reused) {
347+
containerIsStarting(containerInfo);
348+
}
349+
}
350+
344351
@Override
345352
protected void containerIsStarting(final InspectContainerResponse containerInfo) {
346353
logger().debug("Couchbase container is starting, performing configuration.");
@@ -359,6 +366,13 @@ protected void containerIsStarting(final InspectContainerResponse containerInfo)
359366
}
360367
}
361368

369+
@Override
370+
protected void containerIsStarted(InspectContainerResponse containerInfo, boolean reused) {
371+
if (!reused) {
372+
this.containerIsStarted(containerInfo);
373+
}
374+
}
375+
362376
@Override
363377
protected void containerIsStarted(InspectContainerResponse containerInfo) {
364378
timePhase("createBuckets", this::createBuckets);

0 commit comments

Comments
 (0)