diff options
Diffstat (limited to 'jstests/core/hello_response_validation.js')
-rw-r--r-- | jstests/core/hello_response_validation.js | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/jstests/core/hello_response_validation.js b/jstests/core/hello_response_validation.js index d4efc80462d..0094e0b8b2f 100644 --- a/jstests/core/hello_response_validation.js +++ b/jstests/core/hello_response_validation.js @@ -1,7 +1,15 @@ -/** - * This test ensures that the hello command and its aliases, ismaster and isMaster, are all - * accepted. - */ +// +// This test ensures that the hello command and its aliases, ismaster and isMaster, +// are all accepted. +// +// @tags: [ +// # Assert on the isWritablePrimary field of a hello response. If a primary steps down after +// # accepting a hello command and returns before its connection is closed, the response can +// # contain isWritablePrimary: false. +// does_not_support_stepdowns, +// ] + +(function() { "use strict"; function checkResponseFields(commandString) { @@ -88,3 +96,4 @@ assert.eq(cmdResponse1, cmdResponse2); cmdResponse1 = removeTimestamps(db.runCommand("isMaster")); cmdResponse2 = removeTimestamps(db.isMaster()); assert.eq(cmdResponse1, cmdResponse2); +})(); |