Skip to content

Commit 911be01

Browse files
committed
Update test to check if you're really talking to a mongos
1 parent 79d579d commit 911be01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/mongo/collection/view_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@
369369
end
370370
end
371371

372-
context 'when the cluster is sharded' do
372+
context 'when the cluster is sharded', if: sharded? do
373373

374374
before do
375375
allow(authorized_collection.cluster).to receive(:sharded?).and_return(true)

0 commit comments

Comments
 (0)