diff --git a/spec/mongo/collection_spec.rb b/spec/mongo/collection_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/mongo/collection_spec.rb
+++ b/spec/mongo/collection_spec.rb
@@ -1263,7 +1263,7 @@ describe Mongo::Collection do
       end
     end
 
-    context 'when a max time ms value is provided' do
+    context 'when a max time ms value is provided', if: (!sharded? && write_command_enabled?) do
 
       let(:result) do
         authorized_collection.parallel_scan(2, options)
RUBY-<I> Don't test parallelScan on <I>