summaryrefslogtreecommitdiff
path: root/jstests/core/client_metadata_ismaster.js
diff options
context:
space:
mode:
authorclang-format-7.0.1 <adam.martin@10gen.com>2019-07-26 18:42:24 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2019-07-26 18:42:24 -0400
commitc1a45ebbb0530e3d0201321d725527f1eb83ffce (patch)
treef523079dc5ded3052eefbdcaae424b7502df5b25 /jstests/core/client_metadata_ismaster.js
parentc9599d8610c3da0b7c3da65667aff821063cf5b9 (diff)
downloadmongo-c1a45ebbb0530e3d0201321d725527f1eb83ffce.tar.gz
Apply formatting per `clang-format-7.0.1`
Diffstat (limited to 'jstests/core/client_metadata_ismaster.js')
-rw-r--r--jstests/core/client_metadata_ismaster.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/jstests/core/client_metadata_ismaster.js b/jstests/core/client_metadata_ismaster.js
index e5aa7d2547a..92a6b9cee2d 100644
--- a/jstests/core/client_metadata_ismaster.js
+++ b/jstests/core/client_metadata_ismaster.js
@@ -1,12 +1,11 @@
// Test that verifies client metadata behavior for isMaster
(function() {
- "use strict";
-
- // Verify that a isMaster request fails if it contains client metadata, and it is not first.
- // The shell sends isMaster on the first connection
- var result = db.runCommand({"isMaster": 1, "client": {"application": "foobar"}});
- assert.commandFailed(result);
- assert.eq(result.code, ErrorCodes.ClientMetadataCannotBeMutated, tojson(result));
+"use strict";
+// Verify that a isMaster request fails if it contains client metadata, and it is not first.
+// The shell sends isMaster on the first connection
+var result = db.runCommand({"isMaster": 1, "client": {"application": "foobar"}});
+assert.commandFailed(result);
+assert.eq(result.code, ErrorCodes.ClientMetadataCannotBeMutated, tojson(result));
})();