mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-28 00:03:32 +00:00
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:
parent
b536dd7b6c
commit
302d180349
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user