Files
swift-nio/Tests
Rick Newton-Rogers 0e7d4e9534 Fix flakey testHalfCloseOwnOutputWithPopulatedBuffer on iOS sim (#3551)
### Motivation

* `testHalfCloseOwnOutputWithPopulatedBuffer` asserts that writing to a
half-closed channel produces `ChannelError.outputClosed`. However, after
flushing the buffered write and the FIN, the remote peer can process
both and fully close the connection before the subsequent write is
processed. When this happens the channel is fully closed and the write
fails with `.ioOnClosedChannel` instead.
* This race seems to be more likely on iOS simulators in CI.

### Modifications

* Accept either `.outputClosed` or `.ioOnClosedChannel` as valid errors
from the post-half-close write.

### Result

* The test no longer flakes on iOS simulator CI runs.
2026-03-17 19:19:37 +00:00
..
2024-07-19 11:48:17 +02:00
2025-10-06 10:58:33 +01:00
2025-05-07 12:24:44 +00:00