diff options
Diffstat (limited to 'test/net/imap/test_imap.rb')
-rw-r--r-- | test/net/imap/test_imap.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb index e33ab2441b..bdae8f28e4 100644 --- a/test/net/imap/test_imap.rb +++ b/test/net/imap/test_imap.rb @@ -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 |