Commit b859485 1 parent 1671951 commit b859485 Copy full SHA for b859485
File tree 1 file changed +9
-6
lines changed
instrumentation/apache-camel-2.20/javaagent/src/test/groovy/test
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -51,20 +51,23 @@ class MulticastDirectCamelTest extends AgentTestRunner {
51
51
" apache-camel.uri" " direct://input"
52
52
}
53
53
}
54
- it. span(1 ) {
55
- name " second"
54
+ // there is no strict ordering of "first" and "second" span
55
+ def indexOfFirst = span(1 ). name == " first" ? 1 : 2
56
+ def indexOfSecond = span(1 ). name == " second" ? 1 : 2
57
+ it. span(indexOfFirst) {
58
+ name " first"
56
59
kind INTERNAL
57
60
parentSpanId parent. span(0 ). spanId
58
61
attributes {
59
- " apache-camel.uri" " direct://second "
62
+ " apache-camel.uri" " direct://first "
60
63
}
61
64
}
62
- it. span(2 ) {
63
- name " first "
65
+ it. span(indexOfSecond ) {
66
+ name " second "
64
67
kind INTERNAL
65
68
parentSpanId parent. span(0 ). spanId
66
69
attributes {
67
- " apache-camel.uri" " direct://first "
70
+ " apache-camel.uri" " direct://second "
68
71
}
69
72
}
70
73
}
You can’t perform that action at this time.
0 commit comments