File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 88
88
context 'when the option is not provided' do
89
89
90
90
let ( :cluster ) do
91
- described_class . new ( [ '127.0.0.1:27017' ] , TEST_OPTIONS )
91
+ described_class . new ( [ '127.0.0.1:27017' ] , TEST_OPTIONS . dup . delete_if { | k | k == :replica_set } )
92
92
end
93
93
94
94
it 'returns nil' do
Original file line number Diff line number Diff line change 36
36
# The topology type.
37
37
#
38
38
# @since 2.0.0
39
- CONNECT = ENV [ 'RS_ENABLED' ] == 'true' ? : replica_set. freeze :
40
- ENV [ 'SHARDED_ENABLED' ] == 'true' ? : sharded. freeze :
41
- :direct . freeze
39
+ CONNECT = ENV [ 'RS_ENABLED' ] == 'true' ? { connect : : replica_set, replica_set : ENV [ 'RS_NAME' ] } :
40
+ ENV [ 'SHARDED_ENABLED' ] == 'true' ? { connect : : sharded } :
41
+ { connect : :direct }
42
42
43
43
# The write concern to use in the tests.
44
44
#
53
53
# Options for test suite clients.
54
54
#
55
55
# @since 2.0.3
56
- TEST_OPTIONS = { connect : CONNECT ,
57
- max_pool_size : 1 ,
58
- write : WRITE_CONCERN ,
59
- ssl : SSL }
56
+ TEST_OPTIONS = CONNECT . merge ( max_pool_size : 1 ,
57
+ write : WRITE_CONCERN ,
58
+ ssl : SSL ,
59
+ server_selection_timeout : 3 )
60
60
61
61
# The root user name.
62
62
#
You can’t perform that action at this time.
0 commit comments