Skip to content

Commit

Permalink
Use proper img version in CreateChainWithCustomConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Aug 14, 2023
1 parent 2362f1e commit 48b3373
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion interchaintest/module_drip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestJunoDrip(t *testing.T) {
},
}...))

chains := CreateThisBranchChainWithCustomConfig(t, 1, 0, newCfg)
chains := CreateChainWithCustomConfig(t, 1, 0, newCfg)
ic, ctx, _, _ := BuildInitialChain(t, chains)

// Chains
Expand Down
6 changes: 3 additions & 3 deletions interchaintest/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,20 @@ func junoEncoding() *testutil.TestEncodingConfig {
func CreateChain(t *testing.T, numVals, numFull int, img ibc.DockerImage) []ibc.Chain {
cfg := junoConfig
cfg.Images = []ibc.DockerImage{img}
return CreateThisBranchChainWithCustomConfig(t, numVals, numFull, cfg)
return CreateChainWithCustomConfig(t, numVals, numFull, cfg)
}

// CreateThisBranchChain generates this branch's chain (ex: from the commit)
func CreateThisBranchChain(t *testing.T, numVals, numFull int) []ibc.Chain {
return CreateChain(t, numVals, numFull, JunoImage)
}

func CreateThisBranchChainWithCustomConfig(t *testing.T, numVals, numFull int, config ibc.ChainConfig) []ibc.Chain {
func CreateChainWithCustomConfig(t *testing.T, numVals, numFull int, config ibc.ChainConfig) []ibc.Chain {
cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{
{
Name: "juno",
ChainName: "juno",
Version: junoVersion,
Version: config.Images[0].Version,
ChainConfig: config,
NumValidators: &numVals,
NumFullNodes: &numFull,
Expand Down

0 comments on commit 48b3373

Please sign in to comment.