diff options
author | Sean Tao <sean.tao@10gen.com> | 2018-08-09 11:14:12 -0400 |
---|---|---|
committer | Sean Tao <sean.tao@10gen.com> | 2018-08-09 16:30:46 -0400 |
commit | 6981d17bddeef6092a89f5d70621b991abe2b317 (patch) | |
tree | f47c1946913af19b8633148471127805bfe584c9 | |
parent | 7c317b85b1273a8d465479f2205eefedb42154c9 (diff) | |
download | mongo-6981d17bddeef6092a89f5d70621b991abe2b317.tar.gz |
SERVER-36360 top_drop.js occasionally fails
-rw-r--r-- | jstests/noPassthroughWithMongod/top_drop.js | 6 |
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()); }()); |