Skip to content

Commit c949475

Browse files
authored
Fix flaky out of order comparison for http client test (#9158)
1 parent 242a6c8 commit c949475

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dd-java-agent/testing/src/main/groovy/datadog/trace/agent/test/base/HttpClientTest.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ abstract class HttpClientTest extends VersionedNamingTestBase {
330330
status == 500
331331
assertTraces(2) {
332332
trace(size(2)) {
333+
sortSpansByStart()
333334
basicSpan(it, "parent")
334335
clientSpan(it, span(0), method, false, false, uri, 500, false) // not an error.
335336
}
@@ -368,6 +369,7 @@ abstract class HttpClientTest extends VersionedNamingTestBase {
368369
status == 401
369370
assertTraces(2) {
370371
trace(size(2)) {
372+
sortSpansByStart()
371373
basicSpan(it, "parent")
372374
clientSpan(it, span(0), method, false, false, uri, 401, true)
373375
}

0 commit comments

Comments
 (0)