File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
subprojects/redis-enterprise-admin/src/test/java/com/redis/enterprise Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 22
33import org .slf4j .Logger ;
44import org .slf4j .LoggerFactory ;
5+ import org .testcontainers .containers .ContainerLaunchException ;
56import org .testcontainers .utility .DockerImageName ;
67
78import com .redis .enterprise .testcontainers .AbstractRedisEnterpriseContainer ;
@@ -51,11 +52,16 @@ protected void doStart() {
5152 }
5253
5354 @ Override
54- protected void createCluster () throws Exception {
55+ protected void createCluster () {
5556 log .info ("Waiting for cluster bootstrap" );
5657 admin .waitForBoostrap ();
5758 super .createCluster ();
58- Database response = admin .createDatabase (database );
59+ Database response ;
60+ try {
61+ response = admin .createDatabase (database );
62+ } catch (Exception e ) {
63+ throw new ContainerLaunchException ("Could not create database" , e );
64+ }
5965 log .info ("Created database {} with UID {}" , response .getName (), response .getUid ());
6066 }
6167
You can’t perform that action at this time.
0 commit comments