Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-schultz committed Jan 24, 2024
1 parent f1f5376 commit fc95120
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ func TestSanitizeHexString(t *testing.T) {
hash: "1234",
expectedResult: "1234",
},
{
name: "return original length not divisible by 2",
hash: "0x1234g",
expectedResult: "0x1234g",
},
}
for _, testCase := range testCases {
t.Run(testCase.name, func(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions vms/evm/contract_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func TestUnpack(t *testing.T) {
input, err := hex.DecodeString(testCase.input)
require.NoError(t, err)

mockLogger.EXPECT().Warn(gomock.Any(), gomock.Any()).Times(testCase.errorLogTimes)
mockLogger.EXPECT().Error(gomock.Any(), gomock.Any()).Times(testCase.errorLogTimes)
msg, err := m.UnpackWarpMessage(input)
if testCase.expectError {
Expand Down

0 comments on commit fc95120

Please sign in to comment.