Skip to content

Commit e38d620

Browse files
committed
fix init dns tests
1 parent 92c379a commit e38d620

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/integration/initial-dns-seedlist-discovery/initial_dns_seedlist_discovery.prose.test.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { expect } from 'chai';
22
import * as dns from 'dns';
33
import * as sinon from 'sinon';
44

5-
import { MongoAPIError, Server, ServerDescription, Topology } from '../../mongodb';
5+
import { ConnectionPool, MongoAPIError, Server, ServerDescription, Topology } from '../../mongodb';
66
import { topologyWithPlaceholderClient } from '../../tools/utils';
77

88
describe('Initial DNS Seedlist Discovery (Prose Tests)', () => {
@@ -41,6 +41,14 @@ describe('Initial DNS Seedlist Discovery (Prose Tests)', () => {
4141
{} as any
4242
);
4343
});
44+
45+
sinon.stub(ConnectionPool.prototype, 'checkOut').callsFake(async function () {
46+
return {};
47+
});
48+
49+
sinon.stub(ConnectionPool.prototype, 'checkIn').callsFake(function () {
50+
return;
51+
});
4452
});
4553

4654
afterEach(async function () {

0 commit comments

Comments
 (0)