File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -382,24 +382,24 @@ def run_gc
382382
383383 it "should expect connect_timeout to be a positive integer" do
384384 expect {
385- Mysql2 ::Client . new ( :connect_timeout => -1 )
385+ Mysql2 ::Client . new ( DatabaseCredentials [ 'root' ] . merge ( :connect_timeout => -1 ) )
386386 } . to raise_error ( Mysql2 ::Error )
387387 end
388388
389389 it "should expect read_timeout to be a positive integer" do
390390 expect {
391- Mysql2 ::Client . new ( :read_timeout => -1 )
391+ Mysql2 ::Client . new ( DatabaseCredentials [ 'root' ] . merge ( :read_timeout => -1 ) )
392392 } . to raise_error ( Mysql2 ::Error )
393393 end
394394
395395 it "should expect write_timeout to be a positive integer" do
396396 expect {
397- Mysql2 ::Client . new ( :write_timeout => -1 )
397+ Mysql2 ::Client . new ( DatabaseCredentials [ 'root' ] . merge ( :write_timeout => -1 ) )
398398 } . to raise_error ( Mysql2 ::Error )
399399 end
400400
401401 it "should allow nil read_timeout" do
402- client = Mysql2 ::Client . new ( :read_timeout => nil )
402+ client = Mysql2 ::Client . new ( DatabaseCredentials [ 'root' ] . merge ( :read_timeout => nil ) )
403403
404404 expect ( client . read_timeout ) . to be_nil
405405 end
You can’t perform that action at this time.
0 commit comments