You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixing pekko test: revert previous change and fix test server (#9530)
* Revert "add waiting hook in HttpServerTest to try to solve Pekko's flakiness (#9493)"
This reverts commit 4644198.
* close span on exception handling in pekko test server
Copy file name to clipboardExpand all lines: dd-java-agent/instrumentation/pekko-http-1.0/src/baseTest/groovy/PekkoHttpServerInstrumentationTest.groovy
-15Lines changed: 0 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -40,21 +40,6 @@ abstract class PekkoHttpServerInstrumentationTest extends HttpServerTest<PekkoHt
40
40
true
41
41
}
42
42
43
-
@Override
44
-
protectedvoidwaitForRequestToComplete() {
45
-
// Pekko HTTP is asynchronous, and spans may not be completed
46
-
// immediately after the HTTP response is sent. Wait for the trace
47
-
// to be written to avoid race conditions in trace assertions.
48
-
try {
49
-
// Wait up to 1 sec for the trace to be written
50
-
TEST_WRITER.waitForTracesMax(1, 1)
51
-
} catch (InterruptedException e) {
52
-
Thread.currentThread().interrupt()
53
-
// If interrupted, proceed anyway - test may still pass
0 commit comments