File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 157
157
context 'with read preference specified on operation level' do
158
158
require_topology :sharded
159
159
160
+ # RUBY-2706
161
+ min_server_fcv '3.6'
162
+
160
163
it 'passes the read preference' do
161
164
event = Utils . get_command_event ( client , 'explain' ) do |client |
162
165
client [ 'foo' ] . find ( { } , read : { mode : :secondary_preferred } ) . explain . should be_explain_output
168
171
context 'with read preference specified on collection level' do
169
172
require_topology :sharded
170
173
174
+ # RUBY-2706
175
+ min_server_fcv '3.6'
176
+
171
177
it 'passes the read preference' do
172
178
event = Utils . get_command_event ( client , 'explain' ) do |client |
173
179
client [ 'foo' , read : { mode : :secondary_preferred } ] . find . explain . should be_explain_output
179
185
context 'with read preference specified on client level' do
180
186
require_topology :sharded
181
187
188
+ # RUBY-2706
189
+ min_server_fcv '3.6'
190
+
182
191
let ( :client ) { authorized_client . with ( read : { mode : :secondary_preferred } ) }
183
192
184
193
it 'passes the read preference' do
You can’t perform that action at this time.
0 commit comments