Skip to content

Commit

Permalink
chore(shell-api): account for renamed queryShape in integration test C…
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax authored Sep 25, 2024
1 parent 64be13d commit fc3c7f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shell-api/src/integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit fc3c7f9

Please sign in to comment.