Skip to content

Commit 8f46adb

Browse files
author
ALENA NABOKA
committed
fix comment
1 parent 3937bf1 commit 8f46adb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/e2e/tests/critical-path/memory-efficiency/top-keys-table.e2e.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { Selector } from 'testcafe';
33
import { MyRedisDatabasePage, MemoryEfficiencyPage, BrowserPage, CliPage } from '../../../pageObjects';
44
import { rte } from '../../../helpers/constants';
55
import { acceptLicenseTermsAndAddDatabaseApi } from '../../../helpers/database';
6-
import { commonUrl, ossStandaloneConfig } from '../../../helpers/conf';
6+
import { commonUrl, ossStandaloneRedisearch } from '../../../helpers/conf';
77
import { deleteStandaloneDatabaseApi } from '../../../helpers/api/api-database';
8-
import { populateDBWithHashes } from '../../../helpers/keys';
8+
import { deleteAllKeysFromDB, populateDBWithHashes } from '../../../helpers/keys';
99

1010
const memoryEfficiencyPage = new MemoryEfficiencyPage();
1111
const myRedisDatabasePage = new MyRedisDatabasePage();
@@ -27,15 +27,16 @@ fixture `Memory Efficiency Top Keys Table`
2727
.page(commonUrl);
2828
test
2929
.before(async t => {
30-
await acceptLicenseTermsAndAddDatabaseApi(ossStandaloneConfig, ossStandaloneConfig.databaseName);
30+
await acceptLicenseTermsAndAddDatabaseApi(ossStandaloneRedisearch, ossStandaloneRedisearch.databaseName);
3131
// Create keys
32-
await populateDBWithHashes(ossStandaloneConfig.host, ossStandaloneConfig.port, keyToAddParameters);
32+
await populateDBWithHashes(ossStandaloneRedisearch.host, ossStandaloneRedisearch.port, keyToAddParameters);
3333
// Go to Analysis Tools page
3434
await t.click(myRedisDatabasePage.analysisPageButton);
3535
})
3636
.after(async() => {
3737
await cliPage.sendCommandInCli('flushdb');
38-
await deleteStandaloneDatabaseApi(ossStandaloneConfig);
38+
await deleteAllKeysFromDB(ossStandaloneRedisearch.host, ossStandaloneRedisearch.port);
39+
await deleteStandaloneDatabaseApi(ossStandaloneRedisearch);
3940
})('Top Keys displaying in Summary of big keys', async t => {
4041
// Verify that user can see “-” as length for all unsupported data types
4142
await cliPage.sendCommandInCli(mbloomCommand);

0 commit comments

Comments
 (0)