Skip to content

Commit 01380c7

Browse files
p-mongop
andauthored
sync change stream spec tests (#2024)
Co-authored-by: Oleg Pudeyev <[email protected]>
1 parent 91596ae commit 01380c7

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

spec/spec_tests/data/change_streams/change-streams-errors.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,25 +73,21 @@ tests:
7373
result:
7474
error:
7575
code: 280
76-
errorLabels: [ "NonResumableChangeStreamError" ]
77-
7876
-
79-
description: change stream errors on MaxTimeMSExpired
77+
description: change stream errors on ElectionInProgress
8078
minServerVersion: "4.2"
8179
failPoint:
8280
configureFailPoint: failCommand
8381
mode: { times: 1 }
8482
data:
8583
failCommands: ["getMore"]
86-
errorCode: 50 # An error code that's not on the old blacklist or whitelist
84+
errorCode: 216 # An error code that's not on the old blacklist or whitelist
8785
closeConnection: false
8886
target: collection
8987
topology:
9088
- replicaset
9189
- sharded
92-
changeStreamPipeline:
93-
-
94-
$project: { _id: 0 }
90+
changeStreamPipeline: []
9591
changeStreamOptions: {}
9692
operations:
9793
-
@@ -103,4 +99,4 @@ tests:
10399
z: 3
104100
result:
105101
error:
106-
code: 50
102+
code: 216

0 commit comments

Comments
 (0)