diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-10-09 22:19:09 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-10-09 22:19:09 -0400 |
commit | be57a79298deee9366579d0f3c8fa35777a8d4fb (patch) | |
tree | 9d5c719bb760510c46fc420035758b72625491d5 /jstests/replsets/replsetarb2.js | |
parent | 7a429535ff61a410b1cf3d7d0045759fe4a4c24f (diff) | |
download | mongo-be57a79298deee9366579d0f3c8fa35777a8d4fb.tar.gz |
assert arbiter doesn't say its a secondary
Diffstat (limited to 'jstests/replsets/replsetarb2.js')
-rw-r--r-- | jstests/replsets/replsetarb2.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/replsets/replsetarb2.js b/jstests/replsets/replsetarb2.js index 0dd8a3ded31..0e4c79111bc 100644 --- a/jstests/replsets/replsetarb2.js +++ b/jstests/replsets/replsetarb2.js @@ -29,6 +29,8 @@ doTest = function( signal ) { master.getDB("foo").foo.insert({a: "foo"}); replTest.awaitReplication(); + assert( ! conns[1].getDB( "admin" ).runCommand( "ismaster" ).secondary , "arbiter shouldn't be secondary" ) + // Now kill the original master mId = replTest.getNodeId( master ); replTest.stop( mId ); |