Skip to content

Commit 37a211d

Browse files
Speculative fix for flakey AsyncTestingEventLoop test
1 parent d2713ab commit 37a211d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/NIOEmbeddedTests/AsyncTestingEventLoopTests.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,9 @@ final class NIOAsyncTestingEventLoopTests: XCTestCase {
507507
try await group.waitForAll()
508508
}
509509

510-
XCTAssertGreaterThan(tasksRun.load(ordering: .acquiring), 1)
510+
try await eventLoop.executeInContext {
511+
XCTAssertGreaterThan(tasksRun.load(ordering: .acquiring), 1)
512+
}
511513
}
512514

513515
func testShutdownCancelsRemainingScheduledTasks() async {

0 commit comments

Comments
 (0)