mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 02:31:05 +02:00
test: log sanity check assertion failures
This commit is contained in:
@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user