Skip to content

Commit

Permalink
style: Removed unused exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed Mar 21, 2024
1 parent 297adae commit 33f29b3
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testcontainers.containers.ContainerLaunchException;
import org.testcontainers.utility.DockerImageName;

import com.redis.enterprise.testcontainers.AbstractRedisEnterpriseContainer;
Expand Down Expand Up @@ -51,11 +52,16 @@ protected void doStart() {
}

@Override
protected void createCluster() throws Exception {
protected void createCluster() {
log.info("Waiting for cluster bootstrap");
admin.waitForBoostrap();
super.createCluster();
Database response = admin.createDatabase(database);
Database response;
try {
response = admin.createDatabase(database);
} catch (Exception e) {
throw new ContainerLaunchException("Could not create database", e);
}
log.info("Created database {} with UID {}", response.getName(), response.getUid());
}

Expand Down

0 comments on commit 33f29b3

Please sign in to comment.