summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2020-07-15 16:30:45 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-15 20:52:08 +0000
commit02e0fc0714f54e4a53895699411c3d19f776dffe (patch)
tree38263af62d8abbe33eefd87781fafc67f30d338b
parent6377d98fadd8ab5c10eb1e0bb240dc4151fda316 (diff)
downloadmongo-02e0fc0714f54e4a53895699411c3d19f776dffe.tar.gz
SERVER-47714 fix test
-rw-r--r--jstests/replsets/profile.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/replsets/profile.js b/jstests/replsets/profile.js
index 06c5a5d8815..caa5d7f8871 100644
--- a/jstests/replsets/profile.js
+++ b/jstests/replsets/profile.js
@@ -24,7 +24,8 @@ assert.eq(0, primaryDB.system.profile.count());
assert.eq([{_id: 1}], primaryDB.foo.aggregate([]).toArray());
let newAssertCounts = primaryDB.serverStatus().asserts;
assert.eq(oldAssertCounts, newAssertCounts);
-assert.eq(1, primaryDB.system.profile.count());
+// Should have 2 entries, one for the count command and one for the aggregate command.
+assert.eq(2, primaryDB.system.profile.count());
rst.stopSet();
})();