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
382
382
383
383
it "should expect connect_timeout to be a positive integer" do
384
384
expect {
385
- Mysql2 ::Client . new ( :connect_timeout => -1 )
385
+ Mysql2 ::Client . new ( DatabaseCredentials [ 'root' ] . merge ( :connect_timeout => -1 ) )
386
386
} . to raise_error ( Mysql2 ::Error )
387
387
end
388
388
389
389
it "should expect read_timeout to be a positive integer" do
390
390
expect {
391
- Mysql2 ::Client . new ( :read_timeout => -1 )
391
+ Mysql2 ::Client . new ( DatabaseCredentials [ 'root' ] . merge ( :read_timeout => -1 ) )
392
392
} . to raise_error ( Mysql2 ::Error )
393
393
end
394
394
395
395
it "should expect write_timeout to be a positive integer" do
396
396
expect {
397
- Mysql2 ::Client . new ( :write_timeout => -1 )
397
+ Mysql2 ::Client . new ( DatabaseCredentials [ 'root' ] . merge ( :write_timeout => -1 ) )
398
398
} . to raise_error ( Mysql2 ::Error )
399
399
end
400
400
401
401
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 ) )
403
403
404
404
expect ( client . read_timeout ) . to be_nil
405
405
end
You can’t perform that action at this time.
0 commit comments