Skip to content

Conversation

@scottmarchant
Copy link
Collaborator

@scottmarchant scottmarchant commented Dec 2, 2025

Summary

Ported tests from NIOPosix that test the implementations of AsyncEventLoop and MultiThreadedEventLoopGroup in NIOAsyncRuntime. The AsyncEventLoopExecutor is also tested intrinsically.

ℹ️ Because these tests are ported, we prefer to keep them in their current format and implementation to make comparison with tests in NIOPosix easier down the road. At some point, if NIOAsyncRuntime is ever merged into swift-nio, the tests may be consolidated.

Details

  • e43ca9c test: Add tests for AsyncEventLoop and AsyncEventLoopExecutor. The vast majority of these tests were ported from NIOPosix tests for SelectableEventLoop, which AsyncEventLoop replaces.

PR Dependencies

#5

Overview of all changes

All planned changes can be viewed together in #2

…st majority of these tests were ported from NIOPosix tests for SelectableEventLoop, which AsyncEventLoop replaces.
import NIOConcurrencyHelpers
import Testing

@testable import NIOAsyncRuntime
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note: This is a very large test file. Intentionally keeping it this way rather than breaking it up because it matches the original test implementation in NIOPosix closer this way.

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.

2 participants