Skip to content

Commit

Permalink
continue test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Dec 22, 2024
1 parent 3eb0c97 commit 64e241e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ibc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func TestIBCHandshake(t *testing.T) {
require.NoError(t, err)
assert.NotNil(t, i.Ok)
iResponse := i.Ok
require.Equal(t, 0, len(iResponse.Messages))
require.Empty(t, iResponse.Messages)

// channel open
gasMeter2 := api.NewMockGasMeter(TESTING_GAS_LIMIT)
Expand Down Expand Up @@ -199,7 +199,7 @@ func TestIBCPacketDispatch(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, conn.Ok)
connResponse := conn.Ok
require.Equal(t, 1, len(connResponse.Messages))
require.Len(t, connResponse.Messages, 1)
id := connResponse.Messages[0].ID

// mock reflect init callback (to store address)
Expand Down
5 changes: 2 additions & 3 deletions lib_libwasmvm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,9 @@ func TestSimulateStoreCode(t *testing.T) {
if spec.err != "" {
assert.ErrorContains(t, err, spec.err)
} else {
assert.NoError(t, err)

require.NoError(t, err)
_, err = vm.GetCode(checksum)
assert.ErrorContains(t, err, "Error opening Wasm file for reading")
require.ErrorContains(t, err, "Error opening Wasm file for reading")
}
})
}
Expand Down

0 comments on commit 64e241e

Please sign in to comment.