Skip to content

Conversation

@scottmarchant
Copy link
Collaborator

@scottmarchant scottmarchant commented Dec 2, 2025

Summary

Adds shared test utilities to simplify async runtime assertions.

Details

  • d635942 feat: Add testing utilities that make a number of nio-related tests much easier to run.

Usage Examples

  • Capture thrown errors while keeping a default value:
let value: Int = try assertNoThrowWithValue(try maybeThrowing(), defaultValue: 0)
  • Assert a condition becomes true within a deadline:
assert(flag.load(ordering: .relaxed), within: .milliseconds(50))

Tests exercising these helpers: #6 and #10.

PR Dependencies

#4

Overview of all changes

All planned changes can be viewed together in #2

@scottmarchant scottmarchant force-pushed the feat/implementAsyncEventLoopAndMultiThreadedEventLoopGroup branch 2 times, most recently from 884df89 to 8dce0c8 Compare December 3, 2025 20:44
Base automatically changed from feat/implementAsyncEventLoopAndMultiThreadedEventLoopGroup to main December 5, 2025 00:27
@scottmarchant scottmarchant merged commit c2509c2 into main Dec 5, 2025
23 checks passed
@scottmarchant scottmarchant deleted the chore/addTestUtils branch December 5, 2025 00:34
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.

4 participants