You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix ConditionNotSatisfiedError by capturing cron tasks before context close
The scheduledTaskEndpoint.scheduledTasks() call fails after context.close()
because the endpoint is no longer available. Capture the cron tasks list in
setup: before closing the context so the and: assertion block uses the
pre-captured value.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: dd-java-agent/instrumentation/spring/spring-scheduling-3.1/src/latestDepTest/groovy/SpringSchedulingTest.groovy
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,8 @@ class SpringSchedulingTest extends InstrumentationSpecification {
0 commit comments