Skip to content

Commit 98f8470

Browse files
PYTHON-2306 Test that change streams don't resume from ElectionInProgress (#465)
1 parent 9b69338 commit 98f8470

File tree

3 files changed

+1642
-13
lines changed

3 files changed

+1642
-13
lines changed

test/change_streams/change-streams-errors.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
}
108108
},
109109
{
110-
"description": "change stream errors on MaxTimeMSExpired",
110+
"description": "change stream errors on ElectionInProgress",
111111
"minServerVersion": "4.2",
112112
"failPoint": {
113113
"configureFailPoint": "failCommand",
@@ -118,7 +118,7 @@
118118
"failCommands": [
119119
"getMore"
120120
],
121-
"errorCode": 50,
121+
"errorCode": 216,
122122
"closeConnection": false
123123
}
124124
},
@@ -127,13 +127,7 @@
127127
"replicaset",
128128
"sharded"
129129
],
130-
"changeStreamPipeline": [
131-
{
132-
"$project": {
133-
"_id": 0
134-
}
135-
}
136-
],
130+
"changeStreamPipeline": [],
137131
"changeStreamOptions": {},
138132
"operations": [
139133
{
@@ -149,7 +143,7 @@
149143
],
150144
"result": {
151145
"error": {
152-
"code": 50
146+
"code": 216
153147
}
154148
}
155149
}

0 commit comments

Comments
 (0)