Skip to content

Commit

Permalink
test(NODE-3787): sync preferring error codes over messages (#3104)
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Jan 13, 2022
1 parent b3d9fb8 commit 2adc7cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -52,7 +52,7 @@
}
},
{
"description": "errmsg \"not writable primary\" gets ignored when error code exists",
"description": "errmsg \"not master\" gets ignored when error code exists",
"applicationErrors": [
{
"address": "a:27017",
Expand All @@ -61,7 +61,7 @@
"type": "command",
"response": {
"ok": 0,
"errmsg": "not writable primary",
"errmsg": "not master",
"code": 1
}
}
Expand Down
Expand Up @@ -29,15 +29,15 @@ phases:
logicalSessionTimeoutMinutes: null
setName: rs

- description: errmsg "not writable primary" gets ignored when error code exists
- description: errmsg "not master" gets ignored when error code exists
applicationErrors:
- address: a:27017
when: afterHandshakeCompletes
maxWireVersion: 9
type: command
response:
ok: 0
errmsg: "not writable primary"
errmsg: "not master" # NOTE: This needs to be "not master" and not "not writable primary".
code: 1 # Not a "not writable primary" error code.
outcome: *outcome

Expand Down

0 comments on commit 2adc7cd

Please sign in to comment.