Commit 6776e65
Add deterministic reproduction delay to Spring scheduling cron test
After closing the Spring context (which stops the scheduler), add a sleep
longer than the cron interval to prove that no extra traces appear even
under worst-case timing. This makes the previously-flaky race condition
fully deterministic: without context.close(), the sleep guarantees extra
cron executions; with it, the scheduler is stopped and assertions pass.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 072361c commit 6776e65
File tree
2 files changed
+6
-0
lines changed- dd-java-agent/instrumentation/spring/spring-scheduling-3.1/src
- latestDepTest/groovy
- test/groovy
2 files changed
+6
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
0 commit comments