1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/net/imap/test_imap.rb: use Thread#stop? to wait for server thread

Still timeout occurs.  Retry for 5dd8fdd3f3.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20190625T032405Z.fail.html.gz
This commit is contained in:
Yusuke Endoh 2019-06-25 17:20:01 +09:00
parent d7887b05d8
commit 1cbc4f9876

View file

@ -130,12 +130,11 @@ class IMAPTest < Test::Unit::TestCase
end
def start_server
started = false
@threads << Thread.new do
started = true
th = Thread.new do
yield
end
sleep 0.1 until started
@threads << th
sleep 0.1 until th.stop?
end
def test_unexpected_eof