Skip to content

Commit eccc85a

Browse files
committed
undo ordering
1 parent ef37568 commit eccc85a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

test/asynchronous/test_srv_polling.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ async def test_replace_both_with_two(self):
217217
async def test_dns_failures(self):
218218
from dns import exception
219219

220-
for exc in (exception.FormError, exception.Timeout, exception.TooBig):
220+
for exc in (exception.FormError, exception.TooBig, exception.Timeout):
221221

222222
def response_callback(*args):
223223
raise exc("DNS Failure!")
@@ -254,6 +254,9 @@ def final_callback():
254254
# Nodelist should reflect new valid DNS resolver response.
255255
await self.assert_nodelist_change(response_final, client)
256256

257+
# Close the client early to avoid affecting the next scenario run.
258+
await client.close()
259+
257260
async def test_recover_from_initially_empty_seedlist(self):
258261
def empty_seedlist():
259262
return []

test/test_srv_polling.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def test_replace_both_with_two(self):
217217
def test_dns_failures(self):
218218
from dns import exception
219219

220-
for exc in (exception.FormError, exception.Timeout, exception.TooBig):
220+
for exc in (exception.FormError, exception.TooBig, exception.Timeout):
221221

222222
def response_callback(*args):
223223
raise exc("DNS Failure!")
@@ -254,6 +254,9 @@ def final_callback():
254254
# Nodelist should reflect new valid DNS resolver response.
255255
self.assert_nodelist_change(response_final, client)
256256

257+
# Close the client early to avoid affecting the next scenario run.
258+
client.close()
259+
257260
def test_recover_from_initially_empty_seedlist(self):
258261
def empty_seedlist():
259262
return []

0 commit comments

Comments
 (0)