Skip to content

Commit 2ff5cb8

Browse files
authored
tests: Reenable and fix profile aggregate tests (#2910)
1 parent a7feb60 commit 2ff5cb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/search/lib/commands/PROFILE_AGGREGATE.spec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('PROFILE AGGREGATE', () => {
4545
const res = await client.ft.profileAggregate('index', '*');
4646

4747
const normalizedRes = normalizeObject(res);
48-
assert.equal(normalizedRes.results.total, 1);
48+
assert.equal(normalizedRes.results.total, 2);
4949

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

62-
}, Object.assign(GLOBAL.SERVERS.OPEN, {skipTest: true}));
62+
}, GLOBAL.SERVERS.OPEN);
6363

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

106106
const normalizedRes = normalizeObject(res);
107-
assert.equal(normalizedRes.Results.total_results, 1);
107+
assert.equal(normalizedRes.Results.total_results, 2);
108108
assert.ok(normalizedRes.Profile.Shards);
109-
}, Object.assign(GLOBAL.SERVERS.OPEN_3, {skipTest: true}));
109+
}, GLOBAL.SERVERS.OPEN_3);
110110
});

0 commit comments

Comments
 (0)