test: Fix wallet_balance intermittent issue

Fix it by removing a duplicate balance check on the same node.
This commit is contained in:
MacroFake 2022-08-24 13:19:59 +02:00
parent 15692e2641
commit fae5bd9200
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -266,7 +266,6 @@ class WalletTest(BitcoinTestFramework):
self.nodes[1].invalidateblock(block_reorg)
assert_equal(self.nodes[0].getbalance(minconf=0), 0) # wallet txs not in the mempool are untrusted
self.generatetoaddress(self.nodes[0], 1, ADDRESS_WATCHONLY, sync_fun=self.no_op)
assert_equal(self.nodes[0].getbalance(minconf=0), 0) # wallet txs not in the mempool are untrusted
# Now confirm tx_orig
self.restart_node(1, ['-persistmempool=0'])