test: Remove incorrect and unused try-block in assert_debug_log
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -26,7 +26,7 @@ class SetBanTests(BitcoinTestFramework):
|
|||||||
self.nodes[1].setban("127.0.0.1", "add")
|
self.nodes[1].setban("127.0.0.1", "add")
|
||||||
|
|
||||||
# Node 0 should not be able to reconnect
|
# Node 0 should not be able to reconnect
|
||||||
with self.nodes[1].assert_debug_log(expected_msgs=['dropped (banned)\n'],timeout=5):
|
with self.nodes[1].assert_debug_log(expected_msgs=['dropped (banned)\n'], timeout=5):
|
||||||
self.restart_node(1, [])
|
self.restart_node(1, [])
|
||||||
self.nodes[0].addnode("127.0.0.1:" + str(p2p_port(1)), "onetry")
|
self.nodes[0].addnode("127.0.0.1:" + str(p2p_port(1)), "onetry")
|
||||||
|
|
||||||
|
|||||||
@@ -313,9 +313,9 @@ class TestNode():
|
|||||||
with open(debug_log, encoding='utf-8') as dl:
|
with open(debug_log, encoding='utf-8') as dl:
|
||||||
dl.seek(0, 2)
|
dl.seek(0, 2)
|
||||||
prev_size = dl.tell()
|
prev_size = dl.tell()
|
||||||
try:
|
|
||||||
yield
|
yield
|
||||||
finally:
|
|
||||||
while True:
|
while True:
|
||||||
found = True
|
found = True
|
||||||
with open(debug_log, encoding='utf-8') as dl:
|
with open(debug_log, encoding='utf-8') as dl:
|
||||||
|
|||||||
Reference in new issue
Block a user