Skip to content

Commit

Permalink
sync change stream spec tests (#2024)
Browse files Browse the repository at this point in the history
Co-authored-by: Oleg Pudeyev <[email protected]>
  • Loading branch information
p-mongo and p authored Jul 17, 2020
1 parent 91596ae commit 01380c7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions spec/spec_tests/data/change_streams/change-streams-errors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,25 +73,21 @@ tests:
result:
error:
code: 280
errorLabels: [ "NonResumableChangeStreamError" ]

-
description: change stream errors on MaxTimeMSExpired
description: change stream errors on ElectionInProgress
minServerVersion: "4.2"
failPoint:
configureFailPoint: failCommand
mode: { times: 1 }
data:
failCommands: ["getMore"]
errorCode: 50 # An error code that's not on the old blacklist or whitelist
errorCode: 216 # An error code that's not on the old blacklist or whitelist
closeConnection: false
target: collection
topology:
- replicaset
- sharded
changeStreamPipeline:
-
$project: { _id: 0 }
changeStreamPipeline: []
changeStreamOptions: {}
operations:
-
Expand All @@ -103,4 +99,4 @@ tests:
z: 3
result:
error:
code: 50
code: 216

0 comments on commit 01380c7

Please sign in to comment.