зеркало из 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
|
||||
|
||||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче