Skip to content

Commit d9a3d24

Browse files
committed
test: fix lint and timeout
1 parent c946f79 commit d9a3d24

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/data-service/src/data-service.spec.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { mochaTestServer } from '@mongodb-js/compass-test-server';
2323
import type { SearchIndex } from './search-index-detail-helper';
2424
import { range } from 'lodash';
2525
import ConnectionString from 'mongodb-connection-string-url';
26-
import { DataServiceImplLogger, MongoLogId } from './logger';
26+
import type { DataServiceImplLogger, MongoLogId } from './logger';
2727

2828
const { expect } = chai;
2929
chai.use(chaiAsPromised);
@@ -164,7 +164,13 @@ describe('DataService', function () {
164164

165165
it('when connecting fails there is a start and failure log with a connectionId', async function () {
166166
dataServiceLogTest = new DataServiceImpl(
167-
{ connectionString: 'mongodb://iLoveJavascript' },
167+
{
168+
connectionString:
169+
'mongodb://iLoveJavascript?serverSelectionTimeoutMS=5',
170+
lookup: () => {
171+
throw new Error('test error');
172+
},
173+
},
168174
logCollector
169175
);
170176

0 commit comments

Comments
 (0)