File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -396,6 +396,7 @@ def connect *args
396
396
end
397
397
398
398
it "should close the connection when an exception is raised" do
399
+ pending "Ruby 2.1 has changed Timeout behavior." if RUBY_VERSION =~ /2.1/
399
400
begin
400
401
Timeout . timeout ( 1 ) do
401
402
@client . query ( "SELECT sleep(2)" )
@@ -409,6 +410,7 @@ def connect *args
409
410
end
410
411
411
412
it "should handle Timeouts without leaving the connection hanging if reconnect is true" do
413
+ pending "Ruby 2.1 has changed Timeout behavior." if RUBY_VERSION =~ /2.1/
412
414
client = Mysql2 ::Client . new ( DatabaseCredentials [ 'root' ] . merge ( :reconnect => true ) )
413
415
begin
414
416
Timeout . timeout ( 1 ) do
@@ -423,6 +425,7 @@ def connect *args
423
425
end
424
426
425
427
it "should handle Timeouts without leaving the connection hanging if reconnect is set to true after construction true" do
428
+ pending "Ruby 2.1 has changed Timeout behavior." if RUBY_VERSION =~ /2.1/
426
429
client = Mysql2 ::Client . new ( DatabaseCredentials [ 'root' ] )
427
430
begin
428
431
Timeout . timeout ( 1 ) do
You can’t perform that action at this time.
0 commit comments