Skip to content

Commit

Permalink
adding test
Browse files Browse the repository at this point in the history
  • Loading branch information
spoo-bar committed Oct 18, 2023
1 parent e0e54a8 commit 198bb3b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/cosmos/chain_miscellaneous_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 == "" {
Expand Down

0 comments on commit 198bb3b

Please sign in to comment.