diff options
-rw-r--r-- | spec/tiny_server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/tiny_server.rb b/spec/tiny_server.rb index c28fdc30b3..77afde68e1 100644 --- a/spec/tiny_server.rb +++ b/spec/tiny_server.rb @@ -96,7 +96,7 @@ module TinyServer sleep 0.1 # If the host has ":::1 localhost" in its hosts file and if IPv6 # is not enabled we can get NetworkUnreachable exception... - rescue Errno::ENETUNREACH => e + rescue Errno::ENETUNREACH, Net::ReadTimeout, IO::EAGAINWaitReadable => e sleep 0.1 false end |