Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Apr 23, 2024
1 parent 97fee32 commit ef45e19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x/ophost/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ func Test_DeleteOutput(t *testing.T) {
// should return error; deleted
_, err = input.OPHostKeeper.GetOutputProposal(ctx, 1, 1)
require.Error(t, err)

// should able to resubmit the same output
proposeRes, err = ms.ProposeOutput(ctx, types.NewMsgProposeOutput(addrsStr[0], 1, 100, []byte{1, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}))
require.NoError(t, err)
require.Equal(t, uint64(1), proposeRes.OutputIndex)
}

func Test_InitiateTokenDeposit(t *testing.T) {
Expand Down

0 comments on commit ef45e19

Please sign in to comment.