From 198bb3b088674a99a5d938b81f608a5e38dcd19a Mon Sep 17 00:00:00 2001 From: Spoorthi Satheesha <9302666+spoo-bar@users.noreply.github.com> Date: Wed, 18 Oct 2023 15:43:31 +0530 Subject: [PATCH] adding test --- examples/cosmos/chain_miscellaneous_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/cosmos/chain_miscellaneous_test.go b/examples/cosmos/chain_miscellaneous_test.go index e0d53e0ca..11dbd8b85 100644 --- a/examples/cosmos/chain_miscellaneous_test.go +++ b/examples/cosmos/chain_miscellaneous_test.go @@ -88,6 +88,7 @@ func CosmosChainTestMiscellaneous(t *testing.T, name, version string) { testHasCommand(ctx, t, chain) testTokenFactory(ctx, t, chain, users) testAddingNode(ctx, t, chain) + testGetGovernanceAddress(ctx, t, chain) } func testBuildDependencies(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain) { @@ -376,6 +377,13 @@ func testTokenFactory(ctx context.Context, t *testing.T, chain *cosmos.CosmosCha } +func testGetGovernanceAddress(ctx context.Context, t *testing.T, chain *cosmos.CosmosChain) { + govAddr, err := chain.GetGovernanceAddress(ctx) + require.NoError(t, err) + _, err = sdk.AccAddressFromBech32(govAddr) + require.NoError(t, err) +} + // helpers func sendTokens(ctx context.Context, chain *cosmos.CosmosChain, from, to ibc.Wallet, token string, amount int64) (ibc.WalletAmount, error) { if token == "" {