File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
inferred-spans/src/test/java/io/opentelemetry/contrib/inferredspans Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,7 @@ void testSetProfilerIntervalWhenDisabled() {
6464 .profilingDuration (Duration .ofMillis (500 )));
6565
6666 // assert that the interval set before the profiler was initialized is ignored
67- assertThat (setup .profiler .getConfig ().getProfilingInterval ())
68- .isEqualTo (Duration .ofSeconds (10 ));
67+ assertThat (setup .profiler .getConfig ().getProfilingInterval ()).isEqualTo (Duration .ofSeconds (10 ));
6968 }
7069
7170 @ Test
@@ -78,14 +77,12 @@ void testSetProfilerInterval() {
7877
7978 SamplingProfiler profiler = setup .profiler ;
8079 await ()
81- .untilAsserted (
82- () -> assertThat (profiler .getProfilingSessions ()).isGreaterThanOrEqualTo (1 ));
80+ .untilAsserted (() -> assertThat (profiler .getProfilingSessions ()).isGreaterThanOrEqualTo (1 ));
8381
8482 InferredSpans .setProfilerInterval (Duration .ofMillis (100 ));
8583
8684 await ()
8785 .timeout (Duration .ofSeconds (2 ))
88- .untilAsserted (
89- () -> assertThat (profiler .getProfilingSessions ()).isGreaterThanOrEqualTo (2 ));
86+ .untilAsserted (() -> assertThat (profiler .getProfilingSessions ()).isGreaterThanOrEqualTo (2 ));
9087 }
9188}
You can’t perform that action at this time.
0 commit comments