Skip to content

fix flaky HeartbeatEndpointSettingsSyncHostedService tests by polling - #5772

Merged
soujay merged 1 commit into
masterfrom
flakytest-5747
Aug 13, 2026
Merged

soujay merged 1 commit into
masterfrom
flakytest-5747

Conversation

@soujay

@soujay soujay commented Aug 13, 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.

@soujay
soujay requested review from cquirosj and npink42 August 13, 2026 22:57
@soujay
soujay marked this pull request as ready for review August 13, 2026 22:57
@soujay
soujay merged commit 90bdb38 into master Aug 13, 2026
54 checks passed
@soujay
soujay deleted the flakytest-5747 branch August 13, 2026 23:04
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"

3 participants