go-ethereum
go-ethereum copied to clipboard
tests: fix state test error checking
trafficstars
This patch fixes error checking, which was silently failing (or, passing for the wrong reasons) for some tests, like GeneralStateTests/stTransactionTest/HighGasPrice.json, which expected an error TR_NoFunds. In this test, the error was discarded by RunNoVerify.
Note that when an expected error is matched, validations on state root and logs are skipped. If they are not skipped, they will fail. (Why?)