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:
parent
d7887b05d8
commit
1cbc4f9876
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue