Skip to content

Commit 1519684

Browse files
committed
./gradlew spotlessApply
1 parent 4df78fc commit 1519684

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

inferred-spans/src/test/java/io/opentelemetry/contrib/inferredspans/InferredSpansTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)