File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
spec/spec_tests/data/change_streams_unified Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,15 @@ tests:
160
160
- name : createChangeStream
161
161
object : *collection0
162
162
arguments :
163
- pipeline : []
163
+ pipeline :
164
+ # On sharded clusters, the create command run when loading initial
165
+ # data sometimes is still reported in the change stream. To avoid
166
+ # this, we exclude the create command when creating the change
167
+ # stream, but specifically don't exclude other events to still catch
168
+ # driver errors.
169
+ - $match :
170
+ operationType :
171
+ $ne : create
164
172
showExpandedEvents : true
165
173
saveResultAsEntity : &changeStream0 changeStream0
166
174
- name : createIndex
@@ -259,9 +267,7 @@ tests:
259
267
arguments :
260
268
command :
261
269
collMod : *collection0
262
- # Added here to fix our tests as we require a commandName but don't
263
- # do anything with it.
264
- commandName : modify_collection
270
+ commandName : collMod
265
271
- name : iterateUntilDocumentOrError
266
272
object : *changeStream0
267
273
expectResult :
@@ -292,6 +298,7 @@ tests:
292
298
shardCollection : shardedDb.shardedCollection
293
299
key :
294
300
_id : 1
301
+ commandName : shardCollection
295
302
- name : iterateUntilDocumentOrError
296
303
object : *changeStream0
297
304
expectResult :
You can’t perform that action at this time.
0 commit comments