From ba0295d79c9466ab42325cae7349d628e9ae4544 Mon Sep 17 00:00:00 2001 From: mpoke Date: Fri, 25 Aug 2023 17:12:19 +0200 Subject: [PATCH] fix test --- tests/integration/distribution.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/integration/distribution.go b/tests/integration/distribution.go index 1043e2097b..aa600a8cfd 100644 --- a/tests/integration/distribution.go +++ b/tests/integration/distribution.go @@ -396,8 +396,11 @@ func (s *CCVTestSuite) TestSendRewardsToProvider() { // register a consumer reward denom params := keeper.GetConsumerParams(ctx) - params.RewardDenoms = []string{sdk.DefaultBondDenom} + params.RewardDenoms = []string{"uatom"} keeper.SetParams(ctx, params) + + denoms := keeper.AllowedRewardDenoms(ctx) + s.Require().Len(denoms, 1) }, expError: false, tokenTransfers: 0, @@ -481,7 +484,7 @@ func (s *CCVTestSuite) TestSendRewardsToProvider() { transfertypes.PortID, s.consumerApp.GetConsumerKeeper().GetDistributionTransmissionChannel(consumerCtx), ) - s.Require().Len(commitments, tc.tokenTransfers) + s.Require().Len(commitments, tc.tokenTransfers, "unexpected amount of token transfers; test: %s", tc.name) } }