Skip to content

Commit

Permalink
Update consensus/consensus_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: libotony <[email protected]>
  • Loading branch information
MakisChristou and libotony authored Dec 20, 2023
1 parent 816fe8f commit 921a9cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions consensus/consensus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,8 @@ func TestValidateBlockHeader(t *testing.T) {
),
)
assert.Equal(t, expected, err)
isCriticalError := IsCritical(err)
assert.True(t, isCriticalError)
stringError := err.Error()
assert.Equal(t, stringError, "block gas limit invalid: parent 10000000, current 20000000")
assert.True(t, IsCritical(err))
assert.Equal(t, err.Error(), "block gas limit invalid: parent 10000000, current 20000000")

},
},
Expand Down

0 comments on commit 921a9cb

Please sign in to comment.