summaryrefslogtreecommitdiff
path: root/jstests/sharding/features1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/features1.js')
-rw-r--r--jstests/sharding/features1.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/sharding/features1.js b/jstests/sharding/features1.js
index 25308f47788..f5e215a0346 100644
--- a/jstests/sharding/features1.js
+++ b/jstests/sharding/features1.js
@@ -118,7 +118,8 @@ assert.commandWorked(s.s0.adminCommand({shardcollection: "test.foo9", key: {a: 1
// --- listDatabases ---
var r = db.getMongo().getDBs();
assert.eq(3, r.databases.length, tojson(r));
-assert.eq("number", typeof (r.totalSize), "listDatabases 3 : " + tojson(r));
+assert(r.totalSize > 0, "listDatabases 3 : " + tojson(r));
+assert(r.totalSizeMb >= 0, "listDatabases 3 : " + tojson(r));
// --- flushRouterconfig ---
assert.commandWorked(s.s0.adminCommand({flushRouterConfig: 1}));