Skip to content

Remove .timeLimit from EventLoopTest Swift Testing attributes#3545

Merged
rnro merged 1 commit intoapple:mainfrom
rnro:remove_timeLimit
Mar 11, 2026
Merged

Remove .timeLimit from EventLoopTest Swift Testing attributes#3545
rnro merged 1 commit intoapple:mainfrom
rnro:remove_timeLimit

Conversation

@rnro
Copy link
Copy Markdown
Contributor

@rnro rnro commented Mar 11, 2026

Motivation

  • .timeLimit from Swift Testing requires iOS 16.0+, watchOS 9.0+, and tvOS 16.0+ causing build failures on all iOS/watchOS/tvOS simulator test steps in CI.

Modifications

  • Removed .timeLimit(.minutes(1)) from the @Suite attribute on MultiThreadedEventLoopGroupTests.
  • Removed .timeLimit(.minutes(1)) from the @Test attribute on testRepeatedTaskThatCancelsItselfNotifiesOnlyWhenFinished.

Result

  • Tests should compile on iOS, watchOS, and tvOS simulator destinations.
  • The CI job timeout still guards against hung tests.

Motivation

* `.timeLimit` from Swift Testing requires iOS 16.0+, watchOS 9.0+, and
  tvOS 16.0+, but the package's deployment targets are lower, causing
  build failures on all iOS/watchOS/tvOS simulator test steps in CI.

Modifications

* Removed `.timeLimit(.minutes(1))` from the `@Suite` attribute on
  `MultiThreadedEventLoopGroupTests`.
* Removed `.timeLimit(.minutes(1))` from the `@Test` attribute on
  `testRepeatedTaskThatCancelsItselfNotifiesOnlyWhenFinished`.

Result

* Tests compile on iOS, watchOS, and tvOS simulator destinations. The CI
  job timeout still guards against hung tests.
@rnro rnro added the semver/none No version bump required. label Mar 11, 2026
@rnro rnro enabled auto-merge (squash) March 11, 2026 14:04
@rnro rnro merged commit 12f5bab into apple:main Mar 11, 2026
51 of 56 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