diff --git a/src/main/java/io/vertx/junit5/RunTestOnContext.java b/src/main/java/io/vertx/junit5/RunTestOnContext.java index fd567bb..a3f70a9 100644 --- a/src/main/java/io/vertx/junit5/RunTestOnContext.java +++ b/src/main/java/io/vertx/junit5/RunTestOnContext.java @@ -49,7 +49,7 @@ public class RunTestOnContext implements BeforeAllCallback, InvocationIntercepto * Create an instance of this extension that builds a {@link Vertx} object using default options. */ public RunTestOnContext() { - this(new VertxOptions()); + this(new VertxOptions(), false); } /** @@ -59,8 +59,8 @@ public RunTestOnContext() { * * @param options the vertx options */ - public RunTestOnContext(VertxOptions options) { - this(() -> options.getClusterManager() != null ? Vertx.clusteredVertx(options) : Future.succeededFuture(Vertx.vertx(options))); + public RunTestOnContext(VertxOptions options, boolean clustered) { + this(() -> clustered ? Vertx.clusteredVertx(options) : Future.succeededFuture(Vertx.vertx(options))); } /**