File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ async def test_replace_both_with_two(self):
217
217
async def test_dns_failures (self ):
218
218
from dns import exception
219
219
220
- for exc in (exception .FormError , exception .Timeout , exception .TooBig ):
220
+ for exc in (exception .FormError , exception .TooBig , exception .Timeout ):
221
221
222
222
def response_callback (* args ):
223
223
raise exc ("DNS Failure!" )
@@ -254,6 +254,9 @@ def final_callback():
254
254
# Nodelist should reflect new valid DNS resolver response.
255
255
await self .assert_nodelist_change (response_final , client )
256
256
257
+ # Close the client early to avoid affecting the next scenario run.
258
+ await client .close ()
259
+
257
260
async def test_recover_from_initially_empty_seedlist (self ):
258
261
def empty_seedlist ():
259
262
return []
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ def test_replace_both_with_two(self):
217
217
def test_dns_failures (self ):
218
218
from dns import exception
219
219
220
- for exc in (exception .FormError , exception .Timeout , exception .TooBig ):
220
+ for exc in (exception .FormError , exception .TooBig , exception .Timeout ):
221
221
222
222
def response_callback (* args ):
223
223
raise exc ("DNS Failure!" )
@@ -254,6 +254,9 @@ def final_callback():
254
254
# Nodelist should reflect new valid DNS resolver response.
255
255
self .assert_nodelist_change (response_final , client )
256
256
257
+ # Close the client early to avoid affecting the next scenario run.
258
+ client .close ()
259
+
257
260
def test_recover_from_initially_empty_seedlist (self ):
258
261
def empty_seedlist ():
259
262
return []
You can’t perform that action at this time.
0 commit comments