summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync1.js
diff options
context:
space:
mode:
authorKristina <kristina@10gen.com>2011-12-20 13:11:37 -0500
committerKristina <kristina@10gen.com>2011-12-20 13:11:46 -0500
commit912c9af513016740282701afb42aff08c4a000ed (patch)
tree3c1c958b5f1a963f3ef186300ebbc98d06371d14 /jstests/replsets/initial_sync1.js
parentc7a0a5d056c70bfa24e101d3e7482ebf526a205d (diff)
downloadmongo-912c9af513016740282701afb42aff08c4a000ed.tar.gz
Set errmsg for self in replSetGetStatus SERVER-4455
Diffstat (limited to 'jstests/replsets/initial_sync1.js')
-rw-r--r--jstests/replsets/initial_sync1.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/replsets/initial_sync1.js b/jstests/replsets/initial_sync1.js
index 917f30558f2..818e6544ee3 100644
--- a/jstests/replsets/initial_sync1.js
+++ b/jstests/replsets/initial_sync1.js
@@ -127,3 +127,9 @@ master.getDB("foo").bar.ensureIndex({x : 1}, {background : true});
assert.soon(function() {
return replTest.liveNodes.slaves[0].getDB("foo").runCommand({count: 1}).ok == 1;
});
+
+print("13. Check hbmsg");
+master.getDB("admin").runCommand({replSetTest:1, sethbmsg:"foo bar baz"});
+var status = master.getDB("admin").runCommand({replSetGetStatus:1});
+printjson(status);
+assert.eq(status.members[0].errmsg, "foo bar baz");