Skip to content

Commit

Permalink
Fix reuse support for CouchbaseContainer (#9957)
Browse files Browse the repository at this point in the history
Fixes #2794
  • Loading branch information
albihnf authored Feb 18, 2025
1 parent 2fa7f65 commit aa7ddc0
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,13 @@ private void exposePorts() {
}
}

@Override
protected void containerIsStarting(InspectContainerResponse containerInfo, boolean reused) {
if (!reused) {
containerIsStarting(containerInfo);
}
}

@Override
protected void containerIsStarting(final InspectContainerResponse containerInfo) {
logger().debug("Couchbase container is starting, performing configuration.");
Expand All @@ -359,6 +366,13 @@ protected void containerIsStarting(final InspectContainerResponse containerInfo)
}
}

@Override
protected void containerIsStarted(InspectContainerResponse containerInfo, boolean reused) {
if (!reused) {
this.containerIsStarted(containerInfo);
}
}

@Override
protected void containerIsStarted(InspectContainerResponse containerInfo) {
timePhase("createBuckets", this::createBuckets);
Expand Down

0 comments on commit aa7ddc0

Please sign in to comment.