diff options
Diffstat (limited to 'jstests/noPassthrough/awaitable_hello.js')
-rw-r--r-- | jstests/noPassthrough/awaitable_hello.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/jstests/noPassthrough/awaitable_hello.js b/jstests/noPassthrough/awaitable_hello.js index b65b7d63476..871396ffc21 100644 --- a/jstests/noPassthrough/awaitable_hello.js +++ b/jstests/noPassthrough/awaitable_hello.js @@ -8,9 +8,6 @@ load("jstests/libs/fail_point_util.js"); load("jstests/libs/parallel_shell_helpers.js"); -// ErrorCodes -const kIDLParserComparisonError = 51024; - // runTest takes in the hello command or its aliases, isMaster and ismaster. function runTest(db, cmd, logFailpoint) { // Check the command response contains a topologyVersion even if maxAwaitTimeMS and @@ -113,7 +110,7 @@ function runTest(db, cmd, logFailpoint) { // Check that passing a topologyVersion not of type object fails. assert.commandFailedWithCode( db.runCommand({[cmd]: 1, topologyVersion: "topology_version_string", maxAwaitTimeMS: 0}), - ErrorCodes.TypeMismatch); + 10065); // Check that a topologyVersion with an invalid processId and valid counter fails. assert.commandFailedWithCode(db.runCommand({ @@ -191,7 +188,7 @@ function runTest(db, cmd, logFailpoint) { topologyVersion: topologyVersionField, maxAwaitTimeMS: -1, }), - [31373, 51759, kIDLParserComparisonError]); + [31373, 51759]); // Check that the command fails if the awaitable flag is present but either the topologyVersion, // the maxAwaitTimeMS, or both are missing. |