Skip to content

Commit b1ab085

Browse files
committed
Fix async
1 parent a16b3f6 commit b1ab085

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/asynchronous/test_dns.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class TestInitialDnsSeedlistDiscovery(AsyncPyMongoTestCase):
210210

211211
async def run_initial_dns_seedlist_discovery_prose_tests(self, test_cases):
212212
for case in test_cases:
213-
with patch("dns.asyncresolver.resolve") as mock_resolver:
213+
with patch("pymongo.asynchronous.srv_resolver._resolve") as mock_resolver:
214214

215215
async def mock_resolve(query, record_type, *args, **kwargs):
216216
mock_srv = MagicMock()

test/test_dns.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class TestInitialDnsSeedlistDiscovery(PyMongoTestCase):
208208

209209
def run_initial_dns_seedlist_discovery_prose_tests(self, test_cases):
210210
for case in test_cases:
211-
with patch("dns.asyncresolver.resolve") as mock_resolver:
211+
with patch("pymongo.srv_resolver._resolve") as mock_resolver:
212212

213213
def mock_resolve(query, record_type, *args, **kwargs):
214214
mock_srv = MagicMock()

0 commit comments

Comments
 (0)