Any reason to test determinism separate from consistency? It should be ok to just move the assert_equal down a bit:
0diff --git a/test/functional/feature_utxo_set_hash.py b/test/functional/feature_utxo_set_hash.py
1index 233a0ccec7..d25803d883 100755
2--- a/test/functional/feature_utxo_set_hash.py
3+++ b/test/functional/feature_utxo_set_hash.py
4@@ -25,20 +25,9 @@ class UTXOSetHashTest(BitcoinTestFramework):
5 self.log.info("Test deterministic UTXO set hash results")
6
7 node = self.nodes[0]
8+ wallet = MiniWallet(node)
9 mocktime = node.getblockheader(node.getblockhash(0))['time'] + 1
10 node.setmocktime(mocktime)
11- blocks = node.generatetoaddress(10, node.get_deterministic_priv_key().address)
12-
13- assert_equal(node.gettxoutsetinfo()['hash_serialized_2'], "9411e505b12619bc0d464ead3c2a14823f53d288380adf3742c7f86b64e3d6f1")
14- assert_equal(node.gettxoutsetinfo("muhash")['muhash'], "75d363bf768ebe52102613792ceeb345364874b86f4579eb8030ff835799ecc9")
15-
16- node.invalidateblock(blocks[0])
17-
18- def test_muhash_implementation(self):
19- self.log.info("Test MuHash implementation consistency")
20-
21- node = self.nodes[0]
22- wallet = MiniWallet(node)
23
24 # Generate 100 blocks and remove the first since we plan to spend its
25 # coinbase
26@@ -78,10 +67,11 @@ class UTXOSetHashTest(BitcoinTestFramework):
27 node_muhash = node.gettxoutsetinfo("muhash")['muhash']
28
29 assert_equal(finalized[::-1].hex(), node_muhash)
30+ assert_equal(node.gettxoutsetinfo()['hash_serialized_2'], "5b1b44097406226c0eb8e1362cd17a1f346522cf9390a8175a57a5262cb1963f")
31+ assert_equal(node.gettxoutsetinfo("muhash")['muhash'], "4b8803075d7151d06fad3e88b68ba726886794873fbfa841d12aefb2cc2b881b")
32
33 def run_test(self):
34 self.test_deterministic_hash_results()
35- self.test_muhash_implementation()
36
37
38 if __name__ == '__main__':