mirror of
https://github.com/ruby/ruby.git
synced 2026-08-21 17:32:51 +08:00
Replace `sleep 0.1` with `IO.select([@r])` to reliably wait for data to arrive before asserting readability with a zero timeout. The fixed sleep was insufficient on slow Windows CI runners, causing sporadic failures. This matches the approach already used in test_wait_readable. https://github.com/ruby/io-wait/commit/dd32ec3682