Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CAE-774] Reenable and fix profile aggregate tests #2910

Merged
merged 1 commit into from
Mar 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/search/lib/commands/PROFILE_AGGREGATE.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe('PROFILE AGGREGATE', () => {
const res = await client.ft.profileAggregate('index', '*');

const normalizedRes = normalizeObject(res);
assert.equal(normalizedRes.results.total, 1);
assert.equal(normalizedRes.results.total, 2);

assert.ok(normalizedRes.profile[0] === 'Shards');
assert.ok(Array.isArray(normalizedRes.profile[1]));
Expand All @@ -59,7 +59,7 @@ describe('PROFILE AGGREGATE', () => {
assert.ok(shardProfile.includes('Warning'));
assert.ok(shardProfile.includes('Iterators profile'));

}, Object.assign(GLOBAL.SERVERS.OPEN, {skipTest: true}));
}, GLOBAL.SERVERS.OPEN);

testUtils.testWithClientIfVersionWithinRange([[7, 2, 0], [7, 4, 0]], 'client.ft.search', async client => {
await Promise.all([
Expand Down Expand Up @@ -104,7 +104,7 @@ describe('PROFILE AGGREGATE', () => {
const res = await client.ft.profileAggregate('index', '*');

const normalizedRes = normalizeObject(res);
assert.equal(normalizedRes.Results.total_results, 1);
assert.equal(normalizedRes.Results.total_results, 2);
assert.ok(normalizedRes.Profile.Shards);
}, Object.assign(GLOBAL.SERVERS.OPEN_3, {skipTest: true}));
}, GLOBAL.SERVERS.OPEN_3);
});
Loading