Skip to content

Commit 95eb191

Browse files
author
ALENA NABOKA
committed
set initial config for maxsearchresults
1 parent e8e3aa1 commit 95eb191

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/e2e/tests/critical-path/browser/search-capabilities.e2e.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const searchPerValue = '(@name:"Hall School") | (@students:[500, 1000])';
2424
let keyName = common.generateWord(10);
2525
let keyNames: string[];
2626
let indexName = common.generateWord(5);
27+
let commandToChangeMaxSearchResults = 'FT.CONFIG SET maxsearchresults 30000';
2728
async function verifyContext(): Promise<void> {
2829
await t
2930
.expect(browserPage.selectIndexDdn.withText(indexName).exists).ok('Index selection not saved')
@@ -243,11 +244,12 @@ test
243244
.after(async() => {
244245
// Drop index
245246
await cliPage.sendCommandInCli(`FT.DROPINDEX ${indexName}`);
247+
// Set initial maxsearchresults config
248+
commandToChangeMaxSearchResults = 'FT.CONFIG SET maxsearchresults 1000000';
249+
await cliPage.sendCommandInCli(commandToChangeMaxSearchResults);
246250
// Delete database
247251
await deleteStandaloneDatabaseApi(ossStandaloneBigConfig);
248252
})('Scan more Redisearch', async t => {
249-
const commandToChangeMaxSearchResults = 'FT.CONFIG SET maxsearchresults 30000';
250-
251253
await cliPage.sendCommandInCli(commandToChangeMaxSearchResults);
252254
await t.click(browserPage.redisearchModeBtn);
253255

0 commit comments

Comments
 (0)