Skip to content

Commit

Permalink
Update to vertx builder changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Nov 20, 2023
1 parent 6205224 commit 04e1b13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/io/vertx/junit5/RunTestOnContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand All @@ -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)));
}

/**
Expand Down

0 comments on commit 04e1b13

Please sign in to comment.