improve: integration test for PerResourcePollingEventSource delete event propagation by csviri · Pull Request #3278 · operator-framework/java-operator-sdk
-
Notifications
You must be signed in to change notification settings - Fork 239
Merged
Conversation
Copilot AI review requested due to automatic review settings
csviri
changed the title
improve: integration test for PerResourcePollingEventSource event propagation
improve: integration test for PerResourcePollingEventSource delete event propagation
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request improves the integration test for PerResourcePollingEventSource by extending the fetchedAndReconciledMultipleTimes test to verify event propagation behavior when resources are deleted. The test now validates that the polling mechanism correctly handles resource deletion by continuing to poll remaining resources while ceasing to poll deleted ones.
Changes:
- Added imports for
java.time.DurationandPOLL_PERIODconstant from the test reconciler - Modified test method signature to throw
InterruptedExceptionto supportThread.sleep()calls - Added
pollInterval()configuration to bothawait()calls for more predictable polling behavior - Extended test to verify that after deleting a resource, the polling for that resource stops while other resources continue to be polled