Skip to content

test: Port EventLoopFutureTest to Swift Testing.#3491

Merged
glbrntt merged 1 commit intoapple:mainfrom
PassiveLogic:test/portEventLoopFutureTestToSwiftTesting
Feb 5, 2026
Merged

test: Port EventLoopFutureTest to Swift Testing.#3491
glbrntt merged 1 commit intoapple:mainfrom
PassiveLogic:test/portEventLoopFutureTestToSwiftTesting

Conversation

@scottmarchant
Copy link
Copy Markdown
Contributor

@scottmarchant scottmarchant commented Jan 22, 2026

Port EventLoopFutureTest to Swift Testing. Includes some adjustments to ensure tests are ran from the event loop, among other minor changes

Motivation:

Tests should use the latest Swift Testing framework when possible.

Modifications:

  • Ported EventLoopFutureTest from XCTest to Swift Testing

Result:

All tests continue to pass, EventLoopFutureTest now has more modern Swift Testing syntax.

@scottmarchant scottmarchant marked this pull request as ready for review January 22, 2026 22:59
Copy link
Copy Markdown
Member

@weissi weissi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes because this incorrectly pulls EmbeddedEventLoop across threads and also changes .wait() to await [...].get() which is incorrect.

@scottmarchant scottmarchant force-pushed the test/portEventLoopFutureTestToSwiftTesting branch 4 times, most recently from 38a6010 to 58b6aa8 Compare January 23, 2026 17:00
@scottmarchant
Copy link
Copy Markdown
Contributor Author

@weissi I believe I have addressed all concerns. Please let me know if any more changes are needed. Appreciate the great review!

Copy link
Copy Markdown
Member

@weissi weissi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for addressing the comments.

@weissi weissi requested a review from Lukasa January 23, 2026 17:20
@Lukasa Lukasa added the semver/none No version bump required. label Jan 26, 2026
@Lukasa Lukasa enabled auto-merge (squash) January 26, 2026 18:40
auto-merge was automatically disabled January 27, 2026 18:20

Head branch was pushed to by a user without write access

@scottmarchant scottmarchant force-pushed the test/portEventLoopFutureTestToSwiftTesting branch from 58b6aa8 to 13a64d7 Compare January 27, 2026 18:20
@scottmarchant
Copy link
Copy Markdown
Contributor Author

Rebased this on the latest main. @Lukasa Looks like my rebase disabled the auto-merge, sorry.

…adjustments to ensure tests are ran from the event loop.
@scottmarchant scottmarchant force-pushed the test/portEventLoopFutureTestToSwiftTesting branch from 13a64d7 to 3cb2863 Compare February 3, 2026 17:41
@glbrntt glbrntt merged commit e0476c6 into apple:main Feb 5, 2026
55 checks passed
@scottmarchant scottmarchant deleted the test/portEventLoopFutureTestToSwiftTesting branch February 5, 2026 17:29
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.

4 participants