We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 298a931 commit 1c5add3Copy full SHA for 1c5add3
inferred-spans/src/test/java/io/opentelemetry/contrib/inferredspans/internal/SamplingProfilerTest.java
@@ -177,7 +177,8 @@ void testProfileTransaction() throws Exception {
177
try (Scope scope = tx.makeCurrent()) {
178
// makes sure that the rest will be captured by another profiling session
179
// this tests that restoring which threads to profile works
180
- Thread.sleep(600);
+ int currentSession = setup.profiler.getProfilingSessions();
181
+ await().until(() -> setup.profiler.getProfilingSessions() > currentSession);
182
profilingActiveOnThread = setup.profiler.isProfilingActiveOnThread(Thread.currentThread());
183
aInferred(tracer);
184
} finally {
0 commit comments