test: use sleepy wait-for-log in reindex readonly

Also rename the busy wait-for-log method to prevent recurrence
This commit is contained in:
Matthew Zipkin committed 2024-04-30 14:14:50 -04:00
1 parent 2d3056751b
commit fd6a7d3a13
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ class BlockstoreReindexTest(BitcoinTestFramework):
if undo_immutable:
self.log.debug("Attempt to restart and reindex the node with the unwritable block file")
with self.nodes[0].wait_for_debug_log([b"Reindexing finished"]):
with self.nodes[0].assert_debug_log(["Reindexing finished"], timeout=60):
self.start_node(0, extra_args=['-reindex', '-fastprune'])
assert block_count == self.nodes[0].getblockcount()
undo_immutable()