mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
test: Added coverage to Block not found error using gettxoutsetinfo
This commit is contained in:
parent
323b0acfcb
commit
8ec24bdad8
1 changed files with 3 additions and 0 deletions
|
@ -242,6 +242,9 @@ class CoinStatsIndexTest(BitcoinTestFramework):
|
||||||
res12 = index_node.gettxoutsetinfo('muhash')
|
res12 = index_node.gettxoutsetinfo('muhash')
|
||||||
assert_equal(res12, res10)
|
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):
|
def _test_use_index_option(self):
|
||||||
self.log.info("Test use_index option for nodes running the index")
|
self.log.info("Test use_index option for nodes running the index")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue