mirror of
https://github.com/apple/swift-nio
synced 2026-11-26 04:57:49 +00:00
Motivation: testCloseInReadTriggeredByDrainingTheReceiveBufferBecauseOfWriteError expected (without knowing it) that networking on localhost is synchronous enough that a succeeded write means that it has simultaneously arrived in the reader's read buffer. On macOS that's not necessarily true, so this test failed very seldom seemingly more often if you had more physical cores. Modifications: Introduce a nasty blocking `poll` call in the test that waits until we have bytes in the read buffer. Result: - fixes #657