diff options
-rw-r--r-- | jstests/replsets/profile.js | 3 |
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(); })(); |