From fc3c7f9fc582397facd66f2480511d2f990035de Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 25 Sep 2024 22:31:12 +0200 Subject: [PATCH] chore(shell-api): account for renamed queryShape in integration test COMPASS-8319 (#2180) --- packages/shell-api/src/integration.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/shell-api/src/integration.spec.ts b/packages/shell-api/src/integration.spec.ts index 56d80fab0..e759bc644 100644 --- a/packages/shell-api/src/integration.spec.ts +++ b/packages/shell-api/src/integration.spec.ts @@ -2607,14 +2607,14 @@ describe('Shell API (integration)', function () { it('lists projection with args', async function () { await loadQueryCache(collection); const planCache = collection.getPlanCache(); - const res = await planCache.list([{ $project: { queryHash: 1 } }]); + const res = await planCache.list([{ $project: { planCacheKey: 1 } }]); // The 6.0 server greatly reduces the expectations we can make here, // so just assert that query hashes are returned. expect(res).to.have.lengthOf.at.least(2); expect(res).to.have.lengthOf.at.most(4); expect([ ...new Set(res.map((doc) => JSON.stringify(Object.keys(doc)))), - ]).to.deep.equal(['["queryHash"]']); + ]).to.deep.equal(['["planCacheKey"]']); }); }); describe('clear', function () {