From bbf5805c5876f4a4b7b699c853d03d0727c82241 Mon Sep 17 00:00:00 2001 From: Pierlauro Sciarelli Date: Thu, 4 Feb 2021 11:29:18 +0000 Subject: SERVER-53651 Just search for user-issued profiled aggregation in read_pref_cmd.js --- jstests/sharding/read_pref_cmd.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/jstests/sharding/read_pref_cmd.js b/jstests/sharding/read_pref_cmd.js index e41a3c0b670..92dcf5e5278 100644 --- a/jstests/sharding/read_pref_cmd.js +++ b/jstests/sharding/read_pref_cmd.js @@ -179,9 +179,15 @@ var testReadPreference = function(conn, hostList, isMongos, mode, tagSets, secEx } // Test on sharded - cmdTest({aggregate: 'user', pipeline: [{$project: {x: 1}}], cursor: {}}, + const aggregationComment = 'test on sharded'; + cmdTest({ + aggregate: 'user', + pipeline: [{$project: {x: 1}}], + cursor: {}, + comment: aggregationComment + }, true, - formatProfileQuery({aggregate: 'user'})); + formatProfileQuery({aggregate: 'user', comment: aggregationComment})); // Test on non-sharded cmdTest({aggregate: 'mrIn', pipeline: [{$project: {x: 1}}], cursor: {}}, -- cgit v1.2.1