mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 10:19:26 +02:00
test: log sanity check assertion failures
This commit is contained in:
@ -353,9 +353,13 @@ class UTXOCacheTracepointTest(BitcoinTestFramework):
|
||||
"size": event.size
|
||||
})
|
||||
# sanity checks only
|
||||
assert event.memory > 0
|
||||
assert event.duration > 0
|
||||
handle_flush_succeeds += 1
|
||||
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)
|
||||
|
||||
|
Reference in New Issue
Block a user