summaryrefslogtreecommitdiff
path: root/jstests/core/dbadmin.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/dbadmin.js')
-rw-r--r--jstests/core/dbadmin.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/core/dbadmin.js b/jstests/core/dbadmin.js
index d624aaed62c..7bd946f1eef 100644
--- a/jstests/core/dbadmin.js
+++ b/jstests/core/dbadmin.js
@@ -15,15 +15,15 @@ assert(res.databases && res.databases.length > 0 && res.totalSize === undefined,
"listDatabases nameOnly: " + tojson(res));
var now = new Date();
-var x = db._adminCommand("ismaster");
-assert(x.ismaster, "ismaster failed: " + tojson(x));
-assert(x.localTime, "ismaster didn't include time: " + tojson(x));
+var x = db._adminCommand("hello");
+assert(x.isWritablePrimary, "hello failed: " + tojson(x));
+assert(x.localTime, "hello didn't include time: " + tojson(x));
var localTimeSkew = x.localTime - now;
if (localTimeSkew >= 50) {
print("Warning: localTimeSkew " + localTimeSkew + " > 50ms.");
}
-assert.lt(localTimeSkew, 60 * 60 * 1000 /* one minute */, "isMaster.localTime");
+assert.lt(localTimeSkew, 60 * 60 * 1000 /* one minute */, "hello.localTime");
var before = db.runCommand("serverStatus");
print(before.uptimeEstimate);