diff --git a/consensus/consensus_test.go b/consensus/consensus_test.go index 0379bf3a8..0249d27f5 100644 --- a/consensus/consensus_test.go +++ b/consensus/consensus_test.go @@ -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") }, },