sync certainly.
* test/ruby/test_io.rb (test_race_closed_stream): awit for 'sleep' state. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2ad7a741c0
commit
db2822a5bc
@ -3412,7 +3412,7 @@ __END__
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
q.pop
|
q.pop
|
||||||
sleep 0.1 # wait for blocking by r.gets
|
sleep 0.01 while thread.status != 'sleep'
|
||||||
r.close
|
r.close
|
||||||
assert_raise_with_message(IOError, /stream closed/) do
|
assert_raise_with_message(IOError, /stream closed/) do
|
||||||
thread.join
|
thread.join
|
||||||
|
Loading…
x
Reference in New Issue
Block a user