reduced error check to "out of gas" due to multi threading and locking delays that result in different gas consumptions

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2024-03-06 10:09:34 +01:00
parent b536dd7b6c
commit 302d180349
No known key found for this signature in database

View File

@ -138,7 +138,7 @@ func (s *GasConsumptionE2ETestSuite) TestNonValidatorConsumptionOverflow() {
_, err = clitestutil.GetRawLogFromTxOut(val, out) _, err = clitestutil.GetRawLogFromTxOut(val, out)
s.Require().Error(err) s.Require().Error(err)
assert.Equal(s.T(), "out of gas in location: ReadFlat; gasWanted: 200000, gasUsed: 200316: out of gas", err.Error()) assert.Contains(s.T(), err.Error(), "out of gas")
} }
func (s *GasConsumptionE2ETestSuite) createMsgs(from sdk.AccAddress, to sdk.AccAddress, n int) (msgs []sdk.Msg) { func (s *GasConsumptionE2ETestSuite) createMsgs(from sdk.AccAddress, to sdk.AccAddress, n int) (msgs []sdk.Msg) {