From 8ec24bdad89e2a72c394060ba5661a91f374b874 Mon Sep 17 00:00:00 2001 From: kevkevinpal Date: Tue, 25 Jun 2024 20:51:39 -0400 Subject: [PATCH] test: Added coverage to Block not found error using gettxoutsetinfo --- test/functional/feature_coinstatsindex.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/functional/feature_coinstatsindex.py b/test/functional/feature_coinstatsindex.py index d6c1567e64..691163d053 100755 --- a/test/functional/feature_coinstatsindex.py +++ b/test/functional/feature_coinstatsindex.py @@ -242,6 +242,9 @@ class CoinStatsIndexTest(BitcoinTestFramework): res12 = index_node.gettxoutsetinfo('muhash') assert_equal(res12, res10) + self.log.info("Test obtaining info for a non-existent block hash") + assert_raises_rpc_error(-5, "Block not found", index_node.gettxoutsetinfo, hash_type="none", hash_or_height="ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", use_index=True) + def _test_use_index_option(self): self.log.info("Test use_index option for nodes running the index")