go-ethereum icon indicating copy to clipboard operation
go-ethereum copied to clipboard

tests: fix state test error checking

Open meowsbits opened this issue 3 years ago • 0 comments
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?)

meowsbits avatar Sep 06 '22 23:09 meowsbits