We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b55b945 commit 84e7576Copy full SHA for 84e7576
test/net/imap/fake_server/test_helper.rb
@@ -4,10 +4,14 @@
4
5
module Net::IMAP::FakeServer::TestHelper
6
7
- def run_fake_server_in_thread(ignore_io_error: false, timeout: 10, **opts)
+ def run_fake_server_in_thread(ignore_io_error: false,
8
+ report_on_exception: true,
9
+ timeout: 10, **opts)
10
Timeout.timeout(timeout) do
11
server = Net::IMAP::FakeServer.new(timeout: timeout, **opts)
12
@threads << Thread.new do
13
+ Thread.current.abort_on_exception = false
14
+ Thread.current.report_on_exception = report_on_exception
15
server.run
16
rescue IOError
17
raise unless ignore_io_error
0 commit comments