Skip to content

Commit

Permalink
Fix JPMS test flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga committed Apr 15, 2022
1 parent ac786fe commit d7674eb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class JpmsTest {
@Test
void noLinkageErrors() {
SdkMeterProvider meterProvider =
SdkMeterProvider.builder().registerMetricReader(PrometheusHttpServer.create()).build();
SdkMeterProvider.builder()
.registerMetricReader(PrometheusHttpServer.builder().setPort(0).build())
.build();
meterProvider.close();
}
}

0 comments on commit d7674eb

Please sign in to comment.