It doesn’t actually wait for the reindex to complete - so sometimes one gets this error, where there’s no balance yet:
0check -reindex
1Assertion failed: [Decimal('33.99911100'), Decimal('5649.99796160'), Decimal('59.99974800')] != [Decimal('33.99911100'), Decimal('5649.99796160'), Decimal('0E-8')]
2 File "/data/src/bitcoin/qa/rpc-tests/test_framework/test_framework.py", line 135, in main
3 self.run_test()
4 File "./wallet.py", line 296, in run_test
5 assert_equal(balance_nodes, [self.nodes[i].getbalance() for i in range(3)])
6 File "/data/src/bitcoin/qa/rpc-tests/test_framework/util.py", line 428, in assert_equal
7 raise AssertionError("%s != %s"%(str(thing1),str(thing2)))
8Stopping nodes
9Cleaning up
10Failed
The error is kind of rare as reindexing of the regtest chain is very fast. It does seem to happen more after #7744, as it has less delay in the startup.