Skip to content

Commit b343cc0

Browse files
authored
test: fix L0_trace flaky test (#8231)
1 parent 27cece9 commit b343cc0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

qa/L0_trace/test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,9 @@ for p in {1..10}; do
10871087
sleep 10
10881088
done
10891089

1090+
# Wait for all traces to be collected
1091+
sleep 5
1092+
10901093
if ! [[ -s collected_traces.json && `grep -c "\"parentSpanId\":\"\"" ./collected_traces.json` == 1 && `grep -c "\"parentSpanId\":\"b7ad6b7169242424\"" ./collected_traces.json` == 10 ]] ; then
10911094
echo -e "\n***\n*** collected_traces.json should contain 11 OTel trace, but it is not. \n***"
10921095
exit 1

0 commit comments

Comments
 (0)