From 15689ed7780b06ddc14cde4f427de834177283a5 Mon Sep 17 00:00:00 2001 From: eregon Date: Tue, 12 Dec 2017 18:44:49 +0000 Subject: Fix test-all tests to avoid creating report_on_exception warnings * The warnings are shown by Thread.report_on_exception defaulting to true. [Feature #14143] [ruby-core:83979] * Improves tests by narrowing down the scope where an exception is expected. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/net/imap/test_imap.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/net') diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb index 8e48317dab..38ea84cc21 100644 --- a/test/net/imap/test_imap.rb +++ b/test/net/imap/test_imap.rb @@ -660,6 +660,7 @@ EOF } ssl_server = OpenSSL::SSL::SSLServer.new(server, ctx) ths = Thread.start do + Thread.current.report_on_exception = false # always join-ed begin sock = ssl_server.accept begin -- cgit v1.2.3