ruby-changes:56217
From: Yusuke <ko1@a...>
Date: Tue, 25 Jun 2019 17:22:18 +0900 (JST)
Subject: [ruby-changes:56217] Yusuke Endoh: 1cbc4f9876 (trunk): test/net/imap/test_imap.rb: use Thread#stop? to wait for server thread
https://git.ruby-lang.org/ruby.git/commit/?id=1cbc4f9876 From 1cbc4f987656ac8d8ede6c7cd178ac8e6c2a909b Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Tue, 25 Jun 2019 17:20:01 +0900 Subject: test/net/imap/test_imap.rb: use Thread#stop? to wait for server thread Still timeout occurs. Retry for 5dd8fdd3f328f741fae4abba00c478e8a51d2a7e. https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20190625T032405Z.fail.html.gz diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb index e33ab24..bdae8f2 100644 --- a/test/net/imap/test_imap.rb +++ b/test/net/imap/test_imap.rb @@ -130,12 +130,11 @@ class IMAPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/imap/test_imap.rb#L130 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/