Skip to content

Commit cf0a537

Browse files
authored
Fix flaky undertow test (#331)
Signed-off-by: Pavol Loffay <[email protected]>
1 parent 25b04c4 commit cf0a537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation/undertow/undertow-1.4/src/test/java/io/opentelemetry/javaagent/instrumentation/hypertrace/undertow/v1_4/UndertowInstrumentationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ void postUrlEncoded() throws InterruptedException, TimeoutException, IOException
108108
assertEquals(200, response.code());
109109
}
110110

111-
List<List<SpanData>> traces = TEST_WRITER.getTraces();
112111
TEST_WRITER.waitForTraces(1);
112+
List<List<SpanData>> traces = TEST_WRITER.getTraces();
113113
Assertions.assertEquals(1, traces.size());
114114
List<SpanData> trace = traces.get(0);
115115
Assertions.assertEquals(1, trace.size());

0 commit comments

Comments
 (0)