Skip to content

Commit

Permalink
more tests for msg_server_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
puneet2019 committed Jan 11, 2024
1 parent ae98221 commit 621e8f7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions x/ratesync/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ func (suite *IntegrationTestSuite) TestChainMsgServerUpdate() {

hc3.Features.LiquidStakeIBC.Instantiation = types.InstantiationState_INSTANTIATION_INITIATED
hc3.Features.LiquidStakeIBC.CodeID = 1

hc3.Features.LiquidStake.Instantiation = types.InstantiationState_INSTANTIATION_INITIATED
hc3.Features.LiquidStake.CodeID = 1
hc4, _ := k.GetHostChain(ctx, hc3.ID)
hc4.Features.LiquidStake.Instantiation = types.InstantiationState_INSTANTIATION_INITIATED
hc4.Features.LiquidStake.CodeID = 1
tests := []struct {
desc string
request *types.MsgUpdateHostChain
Expand Down Expand Up @@ -93,6 +93,12 @@ func (suite *IntegrationTestSuite) TestChainMsgServerUpdate() {
HostChain: hc3,
},
},
{
desc: "Update feature2",
request: &types.MsgUpdateHostChain{Authority: GovAddress.String(),
HostChain: hc4,
},
},
}
for _, tc := range tests {
suite.T().Run(tc.desc, func(t *testing.T) {
Expand Down

0 comments on commit 621e8f7

Please sign in to comment.