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,8 +353,12 @@ class UTXOCacheTracepointTest(BitcoinTestFramework):
"size": event.size
})
# sanity checks only
try:
assert event.memory > 0
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)

Loading…
Cancel
Save