diff options
author | stickies-v <stickies-v@protonmail.com> | 2023-06-23 12:00:39 +0100 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2023-06-23 16:47:43 +0100 |
commit | 326db63a6819813db55ba0d01ab4fe80f7a0d818 (patch) | |
tree | 797d57cbf252cd2c963f3e4338418abff5b80a05 /test/functional/interface_usdt_utxocache.py | |
parent | f5525ad6808df6afc38e5c6e4767ab577e30629c (diff) | |
download | bitcoin-326db63a6819813db55ba0d01ab4fe80f7a0d818.tar.xz |
test: log sanity check assertion failures
Diffstat (limited to 'test/functional/interface_usdt_utxocache.py')
-rwxr-xr-x | test/functional/interface_usdt_utxocache.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/functional/interface_usdt_utxocache.py b/test/functional/interface_usdt_utxocache.py index aa4216942d..2fc5981451 100755 --- a/test/functional/interface_usdt_utxocache.py +++ b/test/functional/interface_usdt_utxocache.py @@ -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) |