Skip to content

Commit

Permalink
Fix flaky camel test (#1964)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored Jan 5, 2021
1 parent 1671951 commit b859485
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,23 @@ class MulticastDirectCamelTest extends AgentTestRunner {
"apache-camel.uri" "direct://input"
}
}
it.span(1) {
name "second"
// there is no strict ordering of "first" and "second" span
def indexOfFirst = span(1).name == "first" ? 1 : 2
def indexOfSecond = span(1).name == "second" ? 1 : 2
it.span(indexOfFirst) {
name "first"
kind INTERNAL
parentSpanId parent.span(0).spanId
attributes {
"apache-camel.uri" "direct://second"
"apache-camel.uri" "direct://first"
}
}
it.span(2) {
name "first"
it.span(indexOfSecond) {
name "second"
kind INTERNAL
parentSpanId parent.span(0).spanId
attributes {
"apache-camel.uri" "direct://first"
"apache-camel.uri" "direct://second"
}
}
}
Expand Down

0 comments on commit b859485

Please sign in to comment.