summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Tao <sean.tao@10gen.com>2018-08-09 11:14:12 -0400
committerSean Tao <sean.tao@10gen.com>2018-08-09 16:30:46 -0400
commit6981d17bddeef6092a89f5d70621b991abe2b317 (patch)
treef47c1946913af19b8633148471127805bfe584c9
parent7c317b85b1273a8d465479f2205eefedb42154c9 (diff)
downloadmongo-6981d17bddeef6092a89f5d70621b991abe2b317.tar.gz
SERVER-36360 top_drop.js occasionally fails
-rw-r--r--jstests/noPassthroughWithMongod/top_drop.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/noPassthroughWithMongod/top_drop.js b/jstests/noPassthroughWithMongod/top_drop.js
index 8dcc85f2142..17949e59ff6 100644
--- a/jstests/noPassthroughWithMongod/top_drop.js
+++ b/jstests/noPassthroughWithMongod/top_drop.js
@@ -71,9 +71,9 @@
topDB.foo.find().itcount();
topDB.baz.update({}, {$set: {a: 1}});
topDB.bar.remove({});
+
let res = topDB.adminCommand("top");
- assert.isnull(res.totals["test.foo"]);
- assert.isnull(res.totals["test.bar"]);
- assert.isnull(res.totals["test.baz"]);
+ checkTopEntries([]);
+
assert.commandWorked(topDB.dropDatabase());
}());