Commit a37be87
Fix flaky nested virtual threads test by waiting for child spans
The test was using a CountDownLatch that only ensured child threads had
started executing, not that their @trace spans had completed. Replace
the latch with blockUntilChildSpansFinished(1) at each nesting level,
matching the pattern used by other tests in this class.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent cc12228 commit a37be87
1 file changed
Lines changed: 3 additions & 7 deletions
File tree
- dd-java-agent/instrumentation/java/java-lang/java-lang-21.0/src/test/java/testdog/trace/instrumentation/java/lang/jdk21
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
99 | | - | |
100 | 98 | | |
101 | 99 | | |
102 | 100 | | |
| |||
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
121 | | - | |
122 | 119 | | |
123 | 120 | | |
124 | | - | |
| 121 | + | |
125 | 122 | | |
126 | 123 | | |
127 | | - | |
| 124 | + | |
128 | 125 | | |
129 | 126 | | |
| 127 | + | |
130 | 128 | | |
131 | 129 | | |
132 | 130 | | |
133 | | - | |
134 | | - | |
135 | 131 | | |
136 | 132 | | |
137 | 133 | | |
| |||
0 commit comments