◐ Shell
clean mode source ↗

improve: integration test for PerResourcePollingEventSource delete event propagation by csviri · Pull Request #3278 · operator-framework/java-operator-sdk

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

csviri

merged 2 commits into

Apr 8, 2026

Conversation

…pagation

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>

Copilot AI review requested due to automatic review settings

April 8, 2026 12:06

@csviri csviri linked an issue

Apr 8, 2026

that may be closed by this pull request

@csviri csviri changed the title improve: integration test for PerResourcePollingEventSource event propagation improve: integration test for PerResourcePollingEventSource delete event propagation

Apr 8, 2026

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.Duration and POLL_PERIOD constant from the test reconciler
  • Modified test method signature to throw InterruptedException to support Thread.sleep() calls
  • Added pollInterval() configuration to both await() 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
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>

xstefank

3 participants

@csviri @xstefank