From ef45e19ed556bd04e1700286093039954b096ea0 Mon Sep 17 00:00:00 2001 From: beer-1 <147697694+beer-1@users.noreply.github.com> Date: Tue, 23 Apr 2024 12:15:22 +0900 Subject: [PATCH] add test --- x/ophost/keeper/msg_server_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x/ophost/keeper/msg_server_test.go b/x/ophost/keeper/msg_server_test.go index 48f2e388..3dfe26a6 100644 --- a/x/ophost/keeper/msg_server_test.go +++ b/x/ophost/keeper/msg_server_test.go @@ -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) {