Skip to content

RUBY-2848 Spec test for prefer-error-code.yml needs to contain "not master" #2385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/spec_tests/data/sdam/errors/prefer-error-code.yml
Original file line number Diff line number Diff line change
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