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 8c81ab2 commit eea335aCopy full SHA for eea335a
test/net/http/test_http.rb
@@ -1234,6 +1234,15 @@ def test_http_retry_failed
1234
}
1235
end
1236
1237
+ def test_http_retry_failed_with_block
1238
+ start {|http|
1239
+ http.max_retries = 10
1240
+ called = 0
1241
+ assert_raise(Errno::ECONNRESET){ http.get('/'){called += 1; raise Errno::ECONNRESET} }
1242
+ assert_equal 1, called
1243
+ }
1244
+ end
1245
+
1246
def test_keep_alive_server_close
1247
def @server.run(sock)
1248
sock.close
0 commit comments