File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ def connect *args
109
109
110
110
it "should not leave dangling connections after garbage collection" do
111
111
GC . start
112
- sleep 1 if defined? Rubinius # Let the rbx GC thread do its work
112
+ sleep 0.300 # Let GC do its work
113
113
client = Mysql2 ::Client . new ( DatabaseCredentials [ 'root' ] )
114
114
before_count = client . query ( "SHOW STATUS LIKE 'Threads_connected'" ) . first [ 'Value' ] . to_i
115
115
@@ -120,7 +120,7 @@ def connect *args
120
120
after_count . should == before_count + 10
121
121
122
122
GC . start
123
- sleep 1 if defined? Rubinius # Let the rbx GC thread do its work
123
+ sleep 0.300 # Let GC do its work
124
124
final_count = client . query ( "SHOW STATUS LIKE 'Threads_connected'" ) . first [ 'Value' ] . to_i
125
125
final_count . should == before_count
126
126
end
You can’t perform that action at this time.
0 commit comments