Skip to content

Commit

Permalink
Use only 1 val and 0 nodes for e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Sep 18, 2024
1 parent 8a55c3c commit c6df5ce
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 12 deletions.
7 changes: 5 additions & 2 deletions cmd/interchaintest/interchaintest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,14 @@ func setUpTestMatrix() error {
if extraFlags.MatrixFile == "" {
fmt.Fprintln(os.Stderr, "No matrix file provided, falling back to rly with gaia and osmosis")

numValsOne := 1
numFullNodesZero := 0

testMatrix.Relayers = []string{"rly", "hermes"}
testMatrix.ChainSets = [][]*interchaintest.ChainSpec{
{
{Name: "gaia", Version: "v7.0.1"},
{Name: "osmosis", Version: "v7.2.0"},
{Name: "gaia", Version: "v7.0.1", NumValidators: &numValsOne, NumFullNodes: &numFullNodesZero},
{Name: "osmosis", Version: "v7.2.0", NumValidators: &numValsOne, NumFullNodes: &numFullNodesZero},
},
}

Expand Down
4 changes: 2 additions & 2 deletions examples/cosmos/blockdb_messages_view_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ func TestBlockDBMessagesView(t *testing.T) {
const gaia0ChainID = "g0"
const gaia1ChainID = "g1"
cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{
{Name: "gaia", Version: "v7.0.1", ChainConfig: ibc.ChainConfig{ChainID: gaia0ChainID}},
{Name: "gaia", Version: "v7.0.1", ChainConfig: ibc.ChainConfig{ChainID: gaia1ChainID}},
{Name: "gaia", Version: "v7.0.1", ChainConfig: ibc.ChainConfig{ChainID: gaia0ChainID}, NumValidators: &numVals, NumFullNodes: &numFullNodes},
{Name: "gaia", Version: "v7.0.1", ChainConfig: ibc.ChainConfig{ChainID: gaia1ChainID}, NumValidators: &numVals, NumFullNodes: &numFullNodes},
})

chains, err := cf.Chains(t.Name())
Expand Down
1 change: 1 addition & 0 deletions examples/cosmos/chain_genesis_stake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func TestChainGenesisUnequalStake(t *testing.T) {
ChainName: "gaia",
Version: "v15.1.0",
NumValidators: &validators,
NumFullNodes: &numFullNodesZero,
ChainConfig: ibc.ChainConfig{
Denom: denom,
ModifyGenesisAmounts: func(i int) (sdk.Coin, sdk.Coin) {
Expand Down
5 changes: 1 addition & 4 deletions examples/cosmos/chain_param_change_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ func CosmosChainParamChangeTest(t *testing.T, name, version string) {

t.Parallel()

numVals := 1
numFullNodes := 1

// SDK v45 params for Juno genesis
shortVoteGenesis := []cosmos.GenesisKV{
cosmos.NewGenesisKV("app_state.gov.voting_params.voting_period", votingPeriod),
Expand All @@ -41,7 +38,7 @@ func CosmosChainParamChangeTest(t *testing.T, name, version string) {
ModifyGenesis: cosmos.ModifyGenesis(shortVoteGenesis),
}

chains := interchaintest.CreateChainWithConfig(t, numVals, numFullNodes, name, version, cfg)
chains := interchaintest.CreateChainWithConfig(t, numVals, numFullNodesZero, name, version, cfg)
chain := chains[0].(*cosmos.CosmosChain)

enableBlockDB := false
Expand Down
6 changes: 2 additions & 4 deletions examples/cosmos/code_coverage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ func TestCodeCoverage(t *testing.T) {
ctx = context.Background()
ExternalGoCoverDir = "/tmp/interchaintest-app-coverage"
Denom = "umfx"
vals = 1
fullNodes = 0
)

cfgA := ibc.ChainConfig{
Expand Down Expand Up @@ -53,8 +51,8 @@ func TestCodeCoverage(t *testing.T) {
Name: "manifest",
Version: cfgA.Images[0].Version,
ChainName: cfgA.Name,
NumValidators: &vals,
NumFullNodes: &fullNodes,
NumValidators: &numVals,
NumFullNodes: &numFullNodesZero,
ChainConfig: cfgA,
},
})
Expand Down
2 changes: 2 additions & 0 deletions examples/cosmos/ethermint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ func TestEthermintChain(t *testing.T) {
ExposeAdditionalPorts: []string{"8545/tcp"},
ConfigFileOverrides: map[string]any{"config/app.toml": appTomlOverrides},
},
NumValidators: &numValsOne,
NumFullNodes: &numFullNodesZero,
},
})

Expand Down
4 changes: 4 additions & 0 deletions examples/cosmos/sdk_boundary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ func TestSDKBoundaries(t *testing.T) {
chainSpecs: []*interchaintest.ChainSpec{
{
Name: "gaia", ChainName: "gaia", Version: "v7.0.3", //sdk 0.45.6
NumValidators: &numValsOne, NumFullNodes: &numFullNodesZero,
},
{
Name: "ibc-go-simd", ChainName: "simd-50", Version: "feat-upgrade-sdk-v0.50", //sdk 0.50 alpha
NumValidators: &numValsOne, NumFullNodes: &numFullNodesZero,
},
},
relayerVersion: "colin-event-fix",
Expand All @@ -46,9 +48,11 @@ func TestSDKBoundaries(t *testing.T) {
chainSpecs: []*interchaintest.ChainSpec{
{
Name: "ibc-go-simd", ChainName: "simd-47", Version: "v7.2.0", //sdk 0.47.3
NumValidators: &numValsOne, NumFullNodes: &numFullNodesZero,
},
{
Name: "ibc-go-simd", ChainName: "simd-50", Version: "feat-upgrade-sdk-v0.50", //sdk 0.50 alpha
NumValidators: &numValsOne, NumFullNodes: &numFullNodesZero,
},
},
relayerVersion: "colin-event-fix",
Expand Down

0 comments on commit c6df5ce

Please sign in to comment.