Skip to content

Commit

Permalink
fix: speed up the test execution
Browse files Browse the repository at this point in the history
The test method NeonBeeMetricsTest#testCustomMetric occasionally takes
more than a minute to execute. By setting setIgnoreClassPath to true,
the test will execute in less than 15 seconds.
  • Loading branch information
halber committed Jul 19, 2022
1 parent 6948fd2 commit c59f6d8
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -65,6 +65,7 @@ void testCustomMetric(Vertx vertx, VertxTestContext context) {

NeonBeeOptions.Mutable mutable = new NeonBeeOptions.Mutable();
mutable.setServerPort(PORT);
mutable.setIgnoreClassPath(true);
mutable.setWorkingDirectory(Path.of("src", "test", "resources", "io", "neonbee", "endpoint", "metrics"));

NeonBee.create(mutable).onComplete(context.succeeding(event -> httpGet(vertx, TEST_ENDPOINT_URI)
Expand Down

0 comments on commit c59f6d8

Please sign in to comment.