Skip to content

Commit d17a67e

Browse files
authored
DRIVERS-1637: Add index property to writeError (#946)
1 parent 3dca3a7 commit d17a67e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

source/server-discovery-and-monitoring/tests/errors/write_errors_ignored.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
"writeErrors": [
6464
{
6565
"errmsg": "NotMasterNoSlaveOk",
66-
"code": 13435
66+
"code": 13435,
67+
"index": 0
6768
}
6869
]
6970
}

source/server-discovery-and-monitoring/tests/errors/write_errors_ignored.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ phases:
3737
response:
3838
ok: 1
3939
writeErrors:
40-
- { errmsg: NotMasterNoSlaveOk, code: 13435 }
40+
- { errmsg: NotMasterNoSlaveOk, code: 13435, index: 0 }
4141
outcome: *outcome

0 commit comments

Comments
 (0)