diff --git a/cmd/interchaintest/interchaintest_test.go b/cmd/interchaintest/interchaintest_test.go index 34b08069f..ec7c52bf3 100644 --- a/cmd/interchaintest/interchaintest_test.go +++ b/cmd/interchaintest/interchaintest_test.go @@ -108,8 +108,8 @@ func setUpTestMatrix() error { testMatrix.Relayers = []string{"rly", "hermes"} testMatrix.ChainSets = [][]*interchaintest.ChainSpec{ { - {Name: testutil.TestSimd, Version: testutil.SimdVerion, ChainName: "c1", NumValidators: &numValsOne, NumFullNodes: &numFullNodesZero}, - {Name: testutil.TestSimd, Version: testutil.SimdVerion, ChainName: "c2", NumValidators: &numValsOne, NumFullNodes: &numFullNodesZero}, + {Name: testutil.TestSimd, Version: testutil.SimdVersion, ChainName: "c1", NumValidators: &numValsOne, NumFullNodes: &numFullNodesZero}, + {Name: testutil.TestSimd, Version: testutil.SimdVersion, ChainName: "c2", NumValidators: &numValsOne, NumFullNodes: &numFullNodesZero}, }, } diff --git a/examples/cosmos/blockdb_messages_view_test.go b/examples/cosmos/blockdb_messages_view_test.go index 49beed32a..2a0bbd9ae 100644 --- a/examples/cosmos/blockdb_messages_view_test.go +++ b/examples/cosmos/blockdb_messages_view_test.go @@ -32,8 +32,8 @@ func TestBlockDBMessagesView(t *testing.T) { const chainID0 = "c0" const chainID1 = "c1" cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{ - {Name: testutil.TestSimd, Version: testutil.SimdVerion, ChainConfig: ibc.ChainConfig{ChainID: chainID0}, NumValidators: &numVals, NumFullNodes: &numFullNodes}, - {Name: testutil.TestSimd, Version: testutil.SimdVerion, ChainConfig: ibc.ChainConfig{ChainID: chainID1}, NumValidators: &numVals, NumFullNodes: &numFullNodes}, + {Name: testutil.TestSimd, Version: testutil.SimdVersion, ChainConfig: ibc.ChainConfig{ChainID: chainID0}, NumValidators: &numVals, NumFullNodes: &numFullNodes}, + {Name: testutil.TestSimd, Version: testutil.SimdVersion, ChainConfig: ibc.ChainConfig{ChainID: chainID1}, NumValidators: &numVals, NumFullNodes: &numFullNodes}, }) chains, err := cf.Chains(t.Name()) diff --git a/interchain_test.go b/interchain_test.go index 8808370ca..8262c64cf 100644 --- a/interchain_test.go +++ b/interchain_test.go @@ -56,8 +56,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: testutil.TestSimd, ChainName: "c1", Version: testutil.SimdVerion}, - {Name: testutil.TestSimd, ChainName: "c2", Version: testutil.SimdVerion}, + {Name: testutil.TestSimd, ChainName: "c1", Version: testutil.SimdVersion}, + {Name: testutil.TestSimd, ChainName: "c2", Version: testutil.SimdVersion}, }) chains, err := cf.Chains(t.Name()) @@ -114,8 +114,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: testutil.TestSimd, ChainName: "c1", Version: testutil.SimdVerion, ChainConfig: ibc.ChainConfig{ChainID: "chain-1"}}, - {Name: testutil.TestSimd, ChainName: "c2", Version: testutil.SimdVerion, ChainConfig: ibc.ChainConfig{ChainID: "chain-2"}}, + {Name: testutil.TestSimd, ChainName: "c1", Version: testutil.SimdVersion, ChainConfig: ibc.ChainConfig{ChainID: "chain-1"}}, + {Name: testutil.TestSimd, ChainName: "c2", Version: testutil.SimdVersion, ChainConfig: ibc.ChainConfig{ChainID: "chain-2"}}, }) chains, err := cf.Chains(t.Name()) @@ -193,7 +193,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: testutil.TestSimd, ChainName: "c1", Version: testutil.SimdVerion, ChainConfig: ibc.ChainConfig{ChainID: "chain-0"}, NumValidators: &numVals, NumFullNodes: &numFullNodesZero}, + {Name: testutil.TestSimd, ChainName: "c1", Version: testutil.SimdVersion, ChainConfig: ibc.ChainConfig{ChainID: "chain-0"}, NumValidators: &numVals, NumFullNodes: &numFullNodesZero}, }) chains, err := cf.Chains(t.Name()) @@ -308,7 +308,7 @@ func TestInterchain_ConcurrentRelayerOps(t *testing.T) { chainSpecs[i] = &interchaintest.ChainSpec{ Name: testutil.TestSimd, ChainName: fmt.Sprintf("g%d", i+1), - Version: testutil.SimdVerion, + Version: testutil.SimdVersion, NumValidators: &numValidators, NumFullNodes: &numFullNodes, ChainConfig: ibc.ChainConfig{ @@ -370,8 +370,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: testutil.TestSimd, ChainName: "c1", Version: testutil.SimdVerion, ChainConfig: ibc.ChainConfig{ChainID: "chain-1"}, NumValidators: &numVals, NumFullNodes: &numFullNodesZero}, - {Name: testutil.TestSimd, ChainName: "c2", Version: testutil.SimdVerion, ChainConfig: ibc.ChainConfig{ChainID: "chain-2"}, NumValidators: &numVals, NumFullNodes: &numFullNodesZero}, + {Name: testutil.TestSimd, ChainName: "c1", Version: testutil.SimdVersion, ChainConfig: ibc.ChainConfig{ChainID: "chain-1"}, NumValidators: &numVals, NumFullNodes: &numFullNodesZero}, + {Name: testutil.TestSimd, ChainName: "c2", Version: testutil.SimdVersion, ChainConfig: ibc.ChainConfig{ChainID: "chain-2"}, NumValidators: &numVals, NumFullNodes: &numFullNodesZero}, }) chains, err := cf.Chains(t.Name()) @@ -457,7 +457,7 @@ func TestInterchain_OmitGitSHA(t *testing.T) { client, network := interchaintest.DockerSetup(t) cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{ - {Name: testutil.TestSimd, Version: testutil.SimdVerion, NumValidators: &numVals, NumFullNodes: &numFullNodesZero}, + {Name: testutil.TestSimd, Version: testutil.SimdVersion, NumValidators: &numVals, NumFullNodes: &numFullNodesZero}, }) chains, err := cf.Chains(t.Name()) @@ -485,7 +485,7 @@ func TestInterchain_OmitGitSHA(t *testing.T) { func TestInterchain_ConflictRejection(t *testing.T) { t.Run("duplicate chain", func(t *testing.T) { cf := interchaintest.NewBuiltinChainFactory(zap.NewNop(), []*interchaintest.ChainSpec{ - {Name: testutil.TestSimd, Version: testutil.SimdVerion, ChainConfig: ibc.ChainConfig{ChainID: "chain-0"}}, + {Name: testutil.TestSimd, Version: testutil.SimdVersion, ChainConfig: ibc.ChainConfig{ChainID: "chain-0"}}, }) chains, err := cf.Chains(t.Name()) @@ -501,8 +501,8 @@ func TestInterchain_ConflictRejection(t *testing.T) { t.Run("chain name", func(t *testing.T) { cf := interchaintest.NewBuiltinChainFactory(zap.NewNop(), []*interchaintest.ChainSpec{ // Different ChainID, but explicit ChainName used twice. - {Name: testutil.TestSimd, ChainName: "c", Version: testutil.SimdVerion, ChainConfig: ibc.ChainConfig{ChainID: "chain-0"}}, - {Name: testutil.TestSimd, ChainName: "c", Version: testutil.SimdVerion, ChainConfig: ibc.ChainConfig{ChainID: "chain-1"}}, + {Name: testutil.TestSimd, ChainName: "c", Version: testutil.SimdVersion, ChainConfig: ibc.ChainConfig{ChainID: "chain-0"}}, + {Name: testutil.TestSimd, ChainName: "c", Version: testutil.SimdVersion, ChainConfig: ibc.ChainConfig{ChainID: "chain-1"}}, }) chains, err := cf.Chains(t.Name()) @@ -516,8 +516,8 @@ func TestInterchain_ConflictRejection(t *testing.T) { t.Run("chain ID", func(t *testing.T) { cf := interchaintest.NewBuiltinChainFactory(zap.NewNop(), []*interchaintest.ChainSpec{ // Valid ChainName but duplicate ChainID. - {Name: testutil.TestSimd, ChainName: "c1", Version: testutil.SimdVerion, ChainConfig: ibc.ChainConfig{ChainID: "chain-0"}}, - {Name: testutil.TestSimd, ChainName: "c2", Version: testutil.SimdVerion, ChainConfig: ibc.ChainConfig{ChainID: "chain-0"}}, + {Name: testutil.TestSimd, ChainName: "c1", Version: testutil.SimdVersion, ChainConfig: ibc.ChainConfig{ChainID: "chain-0"}}, + {Name: testutil.TestSimd, ChainName: "c2", Version: testutil.SimdVersion, ChainConfig: ibc.ChainConfig{ChainID: "chain-0"}}, }) chains, err := cf.Chains(t.Name()) diff --git a/testutil/doc.go b/testutil/doc.go index 92b33d3ea..306af54ea 100644 --- a/testutil/doc.go +++ b/testutil/doc.go @@ -2,6 +2,6 @@ package testutil const ( - TestSimd = "ibc-go-simd" - SimdVerion = "v8.5.1" + TestSimd = "ibc-go-simd" + SimdVersion = "v8.5.1" )