Skip to content

Commit 2a69478

Browse files
author
Artem
committed
fix UTests
1 parent 4c4581f commit 2a69478

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

redisinsight/api/src/modules/database-import/database-import.service.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ describe('DatabaseImportService', () => {
165165
}, 0);
166166

167167
expect(databaseRepository.create).toHaveBeenCalledWith({
168-
...pick(mockDatabase, ['host', 'port', 'name', 'connectionType', 'timeout', 'compressor', 'modules']),
168+
...pick(mockDatabase, ['host', 'port', 'name', 'connectionType', 'compressor', 'modules']),
169169
provider: 'RE_CLOUD',
170170
new: true,
171171
}, false);
@@ -177,7 +177,7 @@ describe('DatabaseImportService', () => {
177177
}, 0);
178178

179179
expect(databaseRepository.create).toHaveBeenCalledWith({
180-
...pick(mockDatabase, ['host', 'port', 'name', 'connectionType', 'timeout', 'compressor', 'modules']),
180+
...pick(mockDatabase, ['host', 'port', 'name', 'connectionType', 'compressor', 'modules']),
181181
name: `${mockDatabase.host}:${mockDatabase.port}`,
182182
new: true,
183183
}, false);
@@ -189,7 +189,7 @@ describe('DatabaseImportService', () => {
189189
}, 0);
190190

191191
expect(databaseRepository.create).toHaveBeenCalledWith({
192-
...pick(mockDatabase, ['host', 'port', 'name', 'connectionType', 'timeout', 'compressor', 'modules']),
192+
...pick(mockDatabase, ['host', 'port', 'name', 'connectionType', 'compressor', 'modules']),
193193
compressor: Compressor.NONE,
194194
new: true,
195195
}, false);
@@ -201,7 +201,7 @@ describe('DatabaseImportService', () => {
201201
}, 0);
202202

203203
expect(databaseRepository.create).toHaveBeenCalledWith({
204-
...pick(mockDatabase, ['host', 'port', 'name', 'connectionType', 'timeout', 'compressor', 'modules']),
204+
...pick(mockDatabase, ['host', 'port', 'name', 'connectionType', 'compressor', 'modules']),
205205
compressor: Compressor.GZIP,
206206
new: true,
207207
}, false);
@@ -214,7 +214,7 @@ describe('DatabaseImportService', () => {
214214
}, 0);
215215

216216
expect(databaseRepository.create).toHaveBeenCalledWith({
217-
...pick(mockDatabase, ['host', 'port', 'name', 'timeout', 'compressor', 'modules']),
217+
...pick(mockDatabase, ['host', 'port', 'name', 'compressor', 'modules']),
218218
connectionType: ConnectionType.CLUSTER,
219219
new: true,
220220
}, false);

redisinsight/api/src/modules/database/repositories/stack.database.repository.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ describe('StackDatabasesRepository', () => {
116116
port: 6379,
117117
connectionType: ConnectionType.STANDALONE,
118118
tls: false,
119-
timeout: 30_000,
120119
verifyServerCert: false,
121120
lastConnection: null,
122121
});

0 commit comments

Comments
 (0)