Skip to content

Commit 04abbc4

Browse files
committed
Fix error_handling_handshake.json to match upstream spec
The PYTHON-5517 patch had changed the beforeHandshakeCompletes phase to expect Unknown/ReplicaSetNoPrimary. Removing the patch file wasn't enough since the JSON was already written; this restores the correct RSPrimary/ ReplicaSetWithPrimary values from the upstream specifications repo.
1 parent 36f6482 commit 04abbc4

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

test/discovery_and_monitoring/errors/error_handling_handshake.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,22 @@
9797
"outcome": {
9898
"servers": {
9999
"a:27017": {
100-
"type": "Unknown",
101-
"topologyVersion": null,
100+
"type": "RSPrimary",
101+
"setName": "rs",
102+
"topologyVersion": {
103+
"processId": {
104+
"$oid": "000000000000000000000001"
105+
},
106+
"counter": {
107+
"$numberLong": "1"
108+
}
109+
},
102110
"pool": {
103-
"generation": 1
111+
"generation": 0
104112
}
105113
}
106114
},
107-
"topologyType": "ReplicaSetNoPrimary",
115+
"topologyType": "ReplicaSetWithPrimary",
108116
"logicalSessionTimeoutMinutes": null,
109117
"setName": "rs"
110118
}

0 commit comments

Comments
 (0)