diff --git a/examples/profiling-test/src/test/java/perf/Main.java b/examples/profiling-test/src/test/java/perf/Main.java index 873f0f200..2ab6d6ffd 100644 --- a/examples/profiling-test/src/test/java/perf/Main.java +++ b/examples/profiling-test/src/test/java/perf/Main.java @@ -43,9 +43,10 @@ public void pause(Number millis) { } }; + Runner.Builder builder = Runner.builder(); while (true) { count++; - Runner.callAsync(Runner.builder(), "classpath:perf/test.feature", null, hook); + Runner.callAsync(builder, "classpath:perf/test.feature", null, hook); System.out.print(count + " "); if (count % 100 == 0) { System.out.println("");