diff options
author | Pierlauro Sciarelli <pierlauro.sciarelli@mongodb.com> | 2021-02-04 11:29:18 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-04 13:29:21 +0000 |
commit | bbf5805c5876f4a4b7b699c853d03d0727c82241 (patch) | |
tree | 9637f3af9e8b809605ff7a12352bda5907e9cedf | |
parent | 156bf0ff52ac8efbc7b417ec9ddbc6facc48e0f4 (diff) | |
download | mongo-bbf5805c5876f4a4b7b699c853d03d0727c82241.tar.gz |
SERVER-53651 Just search for user-issued profiled aggregation in read_pref_cmd.js
-rw-r--r-- | jstests/sharding/read_pref_cmd.js | 10 |
1 files 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: {}}, |