test: log sanity check assertion failures

pull/27944/head
stickies-v 1 year ago
parent f5525ad680
commit 326db63a68
No known key found for this signature in database
GPG Key ID: 5CB1CE6E5E66A757

@ -353,9 +353,13 @@ class UTXOCacheTracepointTest(BitcoinTestFramework):
"size": event.size "size": event.size
}) })
# sanity checks only # sanity checks only
assert event.memory > 0 try:
assert event.duration > 0 assert event.memory > 0
handle_flush_succeeds += 1 assert event.duration > 0
except AssertionError:
self.log.exception("Assertion error")
else:
handle_flush_succeeds += 1
bpf["utxocache_flush"].open_perf_buffer(handle_utxocache_flush) bpf["utxocache_flush"].open_perf_buffer(handle_utxocache_flush)

Loading…
Cancel
Save