diff options
author | clang-format-7.0.1 <adam.martin@10gen.com> | 2019-07-26 18:20:35 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-07-27 11:02:23 -0400 |
commit | 134a4083953270e8a11430395357fb70a29047ad (patch) | |
tree | dd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /jstests/replsets/localhost3.js | |
parent | 1e46b5049003f427047e723ea5fab15b5a9253ca (diff) | |
download | mongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz |
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'jstests/replsets/localhost3.js')
-rw-r--r-- | jstests/replsets/localhost3.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/jstests/replsets/localhost3.js b/jstests/replsets/localhost3.js index 4f46505aaa6..aa452a05eef 100644 --- a/jstests/replsets/localhost3.js +++ b/jstests/replsets/localhost3.js @@ -1,16 +1,16 @@ // Test ReplSet default initiate with localhost-only binding (function() { - 'use strict'; +'use strict'; - // Select localhost when binding to localhost - const rt = new ReplSetTest({name: "rsLocal", nodes: 1}); - const primary = rt.startSet({bind_ip: undefined})[0]; - const db = primary.getDB('admin'); - const resp = assert.commandWorked(db.adminCommand({replSetInitiate: undefined})); - assert(resp.me.startsWith('localhost:'), tojson(resp.me) + " should start with localhost:"); +// Select localhost when binding to localhost +const rt = new ReplSetTest({name: "rsLocal", nodes: 1}); +const primary = rt.startSet({bind_ip: undefined})[0]; +const db = primary.getDB('admin'); +const resp = assert.commandWorked(db.adminCommand({replSetInitiate: undefined})); +assert(resp.me.startsWith('localhost:'), tojson(resp.me) + " should start with localhost:"); - // Wait for the primary to complete its election before shutting down the set. - assert.soon(() => db.runCommand({ismaster: 1}).ismaster); - rt.stopSet(); +// Wait for the primary to complete its election before shutting down the set. +assert.soon(() => db.runCommand({ismaster: 1}).ismaster); +rt.stopSet(); })(); |