Skip to content

Commit 4adb33e

Browse files
Flush output before trying to check readability.
1 parent 12845a7 commit 4adb33e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/io.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@
228228
begin
229229
# Write some data to make it readable
230230
output.write("Hello World")
231+
output.flush
231232

232233
readables, writables, errorables = IO.select([input], nil, nil, 0.1)
233234

0 commit comments

Comments
 (0)