зеркало из https://github.com/github/ruby.git
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:
Родитель
d7887b05d8
Коммит
1cbc4f9876
|
@ -130,12 +130,11 @@ class IMAPTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def start_server
|
def start_server
|
||||||
started = false
|
th = Thread.new do
|
||||||
@threads << Thread.new do
|
|
||||||
started = true
|
|
||||||
yield
|
yield
|
||||||
end
|
end
|
||||||
sleep 0.1 until started
|
@threads << th
|
||||||
|
sleep 0.1 until th.stop?
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_unexpected_eof
|
def test_unexpected_eof
|
||||||
|
|
Загрузка…
Ссылка в новой задаче