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 f37128dCopy full SHA for f37128d
test/net/http/test_http.rb
@@ -1234,6 +1234,16 @@ 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
+ @log_tester = nil
1245
+ end
1246
+
1247
def test_keep_alive_server_close
1248
def @server.run(sock)
1249
sock.close
0 commit comments