Skip to content

Commit f7ca050

Browse files
committed
debug
1 parent 06b9347 commit f7ca050

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/asynchronous/test_srv_polling.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def dns_resolver_response():
177177
with SrvPollingKnobs(ttl_time=WAIT_TIME, min_srv_rescan_interval=WAIT_TIME):
178178
client = self.simple_client(self.CONNECTION_STRING)
179179
await client.aconnect()
180-
await assertion_method(self.BASE_SRV_RESPONSE, client)
180+
await self.assert_nodelist_change(self.BASE_SRV_RESPONSE, client)
181181
# Patch list of hosts returned by DNS query.
182182
with SrvPollingKnobs(
183183
nodelist_callback=dns_resolver_response, count_resolver_calls=count_resolver_calls
@@ -219,6 +219,8 @@ async def test_dns_failures(self):
219219
def response_callback(*args):
220220
raise exc("DNS Failure!")
221221

222+
print(exc)
223+
222224
await self.run_scenario(response_callback, False)
223225

224226
async def test_dns_record_lookup_empty(self):

test/test_srv_polling.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def dns_resolver_response():
177177
with SrvPollingKnobs(ttl_time=WAIT_TIME, min_srv_rescan_interval=WAIT_TIME):
178178
client = self.simple_client(self.CONNECTION_STRING)
179179
client._connect()
180-
assertion_method(self.BASE_SRV_RESPONSE, client)
180+
self.assert_nodelist_change(self.BASE_SRV_RESPONSE, client)
181181
# Patch list of hosts returned by DNS query.
182182
with SrvPollingKnobs(
183183
nodelist_callback=dns_resolver_response, count_resolver_calls=count_resolver_calls
@@ -219,6 +219,8 @@ def test_dns_failures(self):
219219
def response_callback(*args):
220220
raise exc("DNS Failure!")
221221

222+
print(exc)
223+
222224
self.run_scenario(response_callback, False)
223225

224226
def test_dns_record_lookup_empty(self):

0 commit comments

Comments
 (0)