diff options
Diffstat (limited to 'jstests/replsets/replset4.js')
-rw-r--r-- | jstests/replsets/replset4.js | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/jstests/replsets/replset4.js b/jstests/replsets/replset4.js index 8aecb715130..e6df067d1ea 100644 --- a/jstests/replsets/replset4.js +++ b/jstests/replsets/replset4.js @@ -1,7 +1,7 @@ -doTest = function (signal) { +doTest = function(signal) { // Test orphaned master steps down - var replTest = new ReplSetTest({ name: 'testSet', nodes: 3 }); + var replTest = new ReplSetTest({name: 'testSet', nodes: 3}); replTest.startSet(); replTest.initiate(); @@ -17,23 +17,20 @@ doTest = function (signal) { print("replset4.js 1"); - assert.soon( - function () { - try { - var result = master.getDB("admin").runCommand({ ismaster: 1 }); - return (result['ok'] == 1 && result['ismaster'] == false); - } catch (e) { - print("replset4.js caught " + e); - return false; - } - }, - "Master fails to step down when orphaned." - ); + assert.soon(function() { + try { + var result = master.getDB("admin").runCommand({ismaster: 1}); + return (result['ok'] == 1 && result['ismaster'] == false); + } catch (e) { + print("replset4.js caught " + e); + return false; + } + }, "Master fails to step down when orphaned."); print("replset4.js worked, stopping"); replTest.stopSet(signal); }; print("replset4.js"); -doTest( 15 ); +doTest(15); print("replset4.js SUCCESS"); |