Commit 4be9175
Fix flaky Synapse 3.0 test assertions
Fix two intermittent test failures in SynapseTest:
1. URL tag assertion: The http.url tag sometimes includes the query
string (?wsdl) even though the query is captured separately in
DDTags.HTTP_QUERY. Updated the serverSpan assertion to accept
the URL with or without the query string.
2. Extra trace in client test: The proxy request test sometimes
produces 3 traces instead of the expected 2 due to internal
Synapse activity. Replaced the strict assertTraces(2) with a
manual assertion that waits for at least 2 traces and validates
the expected traces by their content rather than count.
The existing @flaky annotations are preserved for the timeout issue.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent cc12228 commit 4be9175
File tree
1 file changed
+27
-11
lines changed- dd-java-agent/instrumentation/synapse-3.0/src/test/groovy/datadog/trace/instrumentation/synapse3
1 file changed
+27
-11
lines changedLines changed: 27 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
228 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
229 | 245 | | |
230 | 246 | | |
231 | 247 | | |
| |||
247 | 263 | | |
248 | 264 | | |
249 | 265 | | |
250 | | - | |
| 266 | + | |
251 | 267 | | |
252 | 268 | | |
253 | 269 | | |
| |||
0 commit comments