diff options
author | Spencer T Brody <spencer@10gen.com> | 2011-09-07 18:05:32 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2011-09-07 18:06:31 -0400 |
commit | 399d8bf50b3ac51bc07c8e7b0c4aa9b3b02c3da6 (patch) | |
tree | b857641881498c2e855f55ef61fd0fbe950494c6 | |
parent | 955eca2419545e5f79a690893a264bd2a226f4cb (diff) | |
download | mongo-399d8bf50b3ac51bc07c8e7b0c4aa9b3b02c3da6.tar.gz |
Add test for node with highest priority re-becoming primary when it comes back.
-rw-r--r-- | jstests/replsets/priority1.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/replsets/priority1.js b/jstests/replsets/priority1.js index 1b57df565b5..3eef5cfe96d 100644 --- a/jstests/replsets/priority1.js +++ b/jstests/replsets/priority1.js @@ -165,6 +165,9 @@ for (i=0; i<n; i++) { rs.restart(max._id); master = rs.getMaster(); + + print("Restarted max. Checking statuses."); + checkPrimaryIs(max); } print("priority1.js SUCCESS!"); |