diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2020-11-25 08:16:58 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-25 14:05:44 +0000 |
commit | 403c9577ea2a447c2660715af6540e66da8fc4c8 (patch) | |
tree | 6e79f88e21f19b9e9fcdc9ef6aa9a3fe477a681e /jstests/sharding/features1.js | |
parent | 4ff5abf776772827db06bcc941382e3822731d3a (diff) | |
download | mongo-4.4.tar.gz |
SERVER-52544 Update IDL for listDatabases4.4
Diffstat (limited to 'jstests/sharding/features1.js')
-rw-r--r-- | jstests/sharding/features1.js | 3 |
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})); |