Skip to content

Commit

Permalink
more numNodes 1 val and 0 full
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Sep 18, 2024
1 parent 0f260ba commit 0381186
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions interchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ import (
clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" // nolint:staticcheck
)

var (
numVals = 1
numFullNodesZero = 0
)

func TestInterchain_DuplicateChain_CosmosRly(t *testing.T) {
duplicateChainTest(t, ibc.CosmosRly)
}
Expand All @@ -46,8 +51,8 @@ func duplicateChainTest(t *testing.T, relayerImpl ibc.RelayerImplementation) {

cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{
// Two otherwise identical chains that only differ by ChainID.
{Name: "gaia", ChainName: "g1", Version: "v7.0.1"},
{Name: "gaia", ChainName: "g2", Version: "v7.0.1"},
{Name: "gaia", ChainName: "g1", Version: "v7.0.1", NumValidators: &numVals, NumFullNodes: &numFullNodesZero},
{Name: "gaia", ChainName: "g2", Version: "v7.0.1", NumValidators: &numVals, NumFullNodes: &numFullNodesZero},
})

chains, err := cf.Chains(t.Name())
Expand Down Expand Up @@ -102,8 +107,8 @@ func getRelayerWalletsTest(t *testing.T, relayerImpl ibc.RelayerImplementation)

cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{
// Two otherwise identical chains that only differ by ChainID.
{Name: "gaia", ChainName: "g1", Version: "v7.0.1", ChainConfig: ibc.ChainConfig{ChainID: "cosmoshub-0"}},
{Name: "gaia", ChainName: "g2", Version: "v7.0.1", ChainConfig: ibc.ChainConfig{ChainID: "cosmoshub-1"}},
{Name: "gaia", ChainName: "g1", Version: "v7.0.1", ChainConfig: ibc.ChainConfig{ChainID: "cosmoshub-0"}, NumValidators: &numVals, NumFullNodes: &numFullNodesZero},
{Name: "gaia", ChainName: "g2", Version: "v7.0.1", ChainConfig: ibc.ChainConfig{ChainID: "cosmoshub-1"}, NumValidators: &numVals, NumFullNodes: &numFullNodesZero},
})

chains, err := cf.Chains(t.Name())
Expand Down Expand Up @@ -181,7 +186,7 @@ func TestInterchain_CreateUser(t *testing.T) {

cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{
// Two otherwise identical chains that only differ by ChainID.
{Name: "gaia", ChainName: "g1", Version: "v7.0.1", ChainConfig: ibc.ChainConfig{ChainID: "cosmoshub-0"}},
{Name: "gaia", ChainName: "g1", Version: "v7.0.1", ChainConfig: ibc.ChainConfig{ChainID: "cosmoshub-0"}, NumValidators: &numVals, NumFullNodes: &numFullNodesZero},
})

chains, err := cf.Chains(t.Name())
Expand Down Expand Up @@ -357,8 +362,8 @@ func broadcastTxCosmosChainTest(t *testing.T, relayerImpl ibc.RelayerImplementat

cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{
// Two otherwise identical chains that only differ by ChainID.
{Name: "gaia", ChainName: "g1", Version: "v7.0.1", ChainConfig: ibc.ChainConfig{ChainID: "cosmoshub-0"}},
{Name: "gaia", ChainName: "g2", Version: "v7.0.1", ChainConfig: ibc.ChainConfig{ChainID: "cosmoshub-1"}},
{Name: "gaia", ChainName: "g1", Version: "v7.0.1", ChainConfig: ibc.ChainConfig{ChainID: "cosmoshub-0"}, NumValidators: &numVals, NumFullNodes: &numFullNodesZero},
{Name: "gaia", ChainName: "g2", Version: "v7.0.1", ChainConfig: ibc.ChainConfig{ChainID: "cosmoshub-1"}, NumValidators: &numVals, NumFullNodes: &numFullNodesZero},
})

chains, err := cf.Chains(t.Name())
Expand Down Expand Up @@ -444,7 +449,7 @@ func TestInterchain_OmitGitSHA(t *testing.T) {
client, network := interchaintest.DockerSetup(t)

cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{
{Name: "gaia", Version: "v7.0.1"},
{Name: "gaia", Version: "v7.0.1", NumValidators: &numVals, NumFullNodes: &numFullNodesZero},
})

chains, err := cf.Chains(t.Name())
Expand Down

0 comments on commit 0381186

Please sign in to comment.