Skip to content

Commit

Permalink
Fix flaky aws1 test (#9849)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit committed Nov 13, 2023
1 parent b81082d commit fa42343
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,21 @@ abstract class AbstractSqsTracingTest extends InstrumentationSpecification {
publishSpan = span(0)
}
trace(2, 5) {
// sort spans with a ranking function
spans.sort({
// job span is first
if (it.name == "parent") {
return 0
}
if (it.name == "SQS.ReceiveMessage") {
return 1
}
if (it.name == "testSdkSqs receive") {
return 2
}
return 3
})

span(0) {
name "parent"
hasNoParent()
Expand Down

0 comments on commit fa42343

Please sign in to comment.