Skip to content

Commit cb65e4b

Browse files
chore: fix lint
1 parent d2f7666 commit cb65e4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: test/integration/node-specific/mongo_client.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ describe('class MongoClient', function () {
528528
* Wrap the connect method of the client to keep track
529529
* of number of times connect is called
530530
*/
531-
function clientConnect() {
531+
async function clientConnect() {
532532
if (!client) {
533533
return;
534534
}
@@ -563,7 +563,7 @@ describe('class MongoClient', function () {
563563
internalConnectStub.onFirstCall().rejects(new Error('cannot connect'));
564564

565565
// first call rejected to simulate a connection failure
566-
const error = await clientConnect()!.catch(error => error);
566+
const error = await clientConnect().catch(error => error);
567567
expect(error).to.match(/cannot connect/);
568568

569569
internalConnectStub.restore();

0 commit comments

Comments
 (0)