Skip to content

Commit 40ea889

Browse files
qdm12ARR4N
andauthored
Add context to assertions
Co-authored-by: Arran Schlosberg <[email protected]> Signed-off-by: Quentin McGaw <[email protected]>
1 parent 6a8fb2e commit 40ea889

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libevm/legacy/legacy_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ func TestPrecompiledStatefulContract_Upgrade(t *testing.T) {
9393
} else {
9494
require.EqualError(t, err, testCase.wantErr)
9595
}
96-
assert.Equal(t, testCase.wantRet, ret)
97-
assert.Equal(t, testCase.wantGasUsed, env.gasUsed)
96+
assert.Equal(t, testCase.wantRet, ret, "bytes returned by upgraded contract")
97+
assert.Equalf(t, testCase.wantGasUsed, env.gasUsed, "sum of %T.UseGas() calls", env)
9898
})
9999
}
100100
}

0 commit comments

Comments
 (0)