Skip to content

fix flaky HeartbeatEndpointSettingsSyncHostedService tests by polling instead of fixed delay - #5756

Draft
soujay wants to merge 2 commits into
masterfrom
flaky-test-5747
Draft

fix flaky HeartbeatEndpointSettingsSyncHostedService tests by polling instead of fixed delay#5756
soujay wants to merge 2 commits into
masterfrom
flaky-test-5747

Conversation

@soujay

@soujay soujay commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Background service work runs asynchronously on the thread pool. Waiting a fixed duration of 2 seconds before asserting is flaky on slower/loaded CI machines because the work may not have completed yet. Instead, this PR polls for the expected condition until it is met or a generous timeout elapses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky tests in " Should_delete_endpoint_monitoring_instance_data_if_instance_is_not_heartbeating_and_tracking_instances_is_disabled"

2 participants