File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -16,5 +16,7 @@ group :development do
16
16
end
17
17
18
18
platforms :rbx do
19
- gem 'rubysl'
19
+ gem 'rubysl-rake'
20
+ gem 'rubysl-drb'
21
+ gem 'rubysl-bigdecimal'
20
22
end
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ def connect *args
106
106
107
107
it "should not leave dangling connections after garbage collection" do
108
108
GC . start
109
+ sleep 1 if defined? Rubinius # Let the rbx GC thread do its work
109
110
client = Mysql2 ::Client . new ( DatabaseCredentials [ 'root' ] )
110
111
before_count = client . query ( "SHOW STATUS LIKE 'Threads_connected'" ) . first [ 'Value' ] . to_i
111
112
@@ -116,9 +117,9 @@ def connect *args
116
117
after_count . should == before_count + 10
117
118
118
119
GC . start
120
+ sleep 1 if defined? Rubinius # Let the rbx GC thread do its work
119
121
final_count = client . query ( "SHOW STATUS LIKE 'Threads_connected'" ) . first [ 'Value' ] . to_i
120
- final_count . should == before_count if !defined? Rubinius
121
- final_count . should < before_count + 5 if defined? Rubinius # Cut GC some slack
122
+ final_count . should == before_count
122
123
end
123
124
124
125
it "should be able to connect to database with numeric-only name" do
You can’t perform that action at this time.
0 commit comments