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
Родитель d7887b05d8
Коммит 1cbc4f9876
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -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