Skip to content

Extend timeout in testShutdownCancelsOutstandingScheduledCallbacks#3537

Merged
rnro merged 4 commits intoapple:mainfrom
rnro:testShutdownCancelsOutstandingScheduledCallbacks
Mar 6, 2026
Merged

Extend timeout in testShutdownCancelsOutstandingScheduledCallbacks#3537
rnro merged 4 commits intoapple:mainfrom
rnro:testShutdownCancelsOutstandingScheduledCallbacks

Conversation

@rnro
Copy link
Copy Markdown
Contributor

@rnro rnro commented Mar 4, 2026

Extend timeout in testShutdownCancelsOutstandingScheduledCallbacks

Motivation:

  • testShutdownCancelsOutstandingScheduledCallbacks can be flaky,
    particularly on slower systems like simulated devices in CI.
  • In some circumstances the task can be executed before it has chance to
    be cancelled.

Modifications:

  • Schedule the task for the far future so that it is available to be
    cancelled even on slower systems.

Result:

Less flaky tests.

rnro added 2 commits March 4, 2026 15:24
Motivation:

* `testShutdownCancelsOutstandingScheduledCallbacks` can be flaky,
  particularly on slower systems like simulated devices in CI.
* In some circumstances the task can be executed before it has chance to
  be cancelled.

Modifications:

* Schedule the task for the far future so that it is available to be
  cancelled even on slower systems.

Result:

Less flaky tests.
@rnro rnro added the semver/none No version bump required. label Mar 4, 2026
@rnro rnro enabled auto-merge (squash) March 6, 2026 09:29
@rnro rnro merged commit 7ba045d into apple:main Mar 6, 2026
51 of 55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants