summaryrefslogtreecommitdiff
path: root/spec/tiny_server.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-05-31 08:57:02 -0700
committerdanielsdeleo <dan@opscode.com>2013-05-31 08:57:02 -0700
commitfde2c27bed37c92c35a15ad88ecaf3fb32d08103 (patch)
treee48e8d314beabe90087745cdba69c6fed55443d2 /spec/tiny_server.rb
parentf5128d2290b5bb7646f97e61e246b7b09a848a1b (diff)
downloadchef-fde2c27bed37c92c35a15ad88ecaf3fb32d08103.tar.gz
Rescue EOFError in tiny server startup
EOFError sometimes occurs when running remote file tests with HTTPS, should be a recoverable condition. This is not 100% verified because the error is very intermittent.
Diffstat (limited to 'spec/tiny_server.rb')
-rw-r--r--spec/tiny_server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/tiny_server.rb b/spec/tiny_server.rb
index 6951e8064f..fe2b7554ca 100644
--- a/spec/tiny_server.rb
+++ b/spec/tiny_server.rb
@@ -91,7 +91,7 @@ module TinyServer
true
rescue OpenURI::HTTPError
true
- rescue Errno::ECONNREFUSED => e
+ rescue Errno::ECONNREFUSED, EOFError => e
sleep 0.1
# If the host has ":::1 localhost" in its hosts file and if IPv6
# is not enabled we can get NetworkUnreachable exception...