summaryrefslogtreecommitdiff
path: root/jstests/change_streams
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2019-02-21 16:27:03 +0000
committerBernard Gorman <bernard.gorman@gmail.com>2019-02-22 00:54:32 +0000
commit20fc08af78154399615312db92952fdcd5c61088 (patch)
tree4342339fcb96481e1fc473bff06631c306034f4b /jstests/change_streams
parent4ac8553ce4e6cb07e0615b9c236abe18c430d68f (diff)
downloadmongo-20fc08af78154399615312db92952fdcd5c61088.tar.gz
SERVER-37786 Add new ChangeStreamFatalError code
Diffstat (limited to 'jstests/change_streams')
-rw-r--r--jstests/change_streams/pipeline_cannot_modify_id_field.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/change_streams/pipeline_cannot_modify_id_field.js b/jstests/change_streams/pipeline_cannot_modify_id_field.js
index 49a0ce42d33..3db6c0990eb 100644
--- a/jstests/change_streams/pipeline_cannot_modify_id_field.js
+++ b/jstests/change_streams/pipeline_cannot_modify_id_field.js
@@ -137,7 +137,8 @@
const getMoreRes =
db.runCommand({getMore: cmdRes.cursor.id, collection: coll.getName()});
return !getMoreRes.ok &&
- assert.commandFailedWithCode(getMoreRes, [51059, 51060], transform);
+ assert.commandFailedWithCode(
+ getMoreRes, ErrorCodes.ChangeStreamFatalError, transform);
}, transform);
}
}()); \ No newline at end of file