Skip to content

Commit

Permalink
chore: add upgrade path as parameter in configurer
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Jul 25, 2024
1 parent 0a16ccb commit a3a3d6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions test/e2e/configurer/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"testing"

"github.com/babylonchain/babylon/test/e2e/configurer/chain"
"github.com/babylonchain/babylon/test/e2e/configurer/config"
"github.com/babylonchain/babylon/test/e2e/containers"
"github.com/babylonchain/babylon/test/e2e/initialization"
zctypes "github.com/babylonchain/babylon/x/zoneconcierge/types"
Expand Down Expand Up @@ -198,7 +197,7 @@ func NewBTCStakingConfigurer(t *testing.T, isDebugLogEnabled bool) (Configurer,
}

// NewSoftwareUpgradeConfigurer returns a new Configurer for Software Upgrade testing
func NewSoftwareUpgradeConfigurer(t *testing.T, isDebugLogEnabled bool) (Configurer, error) {
func NewSoftwareUpgradeConfigurer(t *testing.T, isDebugLogEnabled bool, upgradePath string) (Configurer, error) {
containerManager, err := containers.NewManager(isDebugLogEnabled, false, true)
if err != nil {
return nil, err
Expand All @@ -211,7 +210,7 @@ func NewSoftwareUpgradeConfigurer(t *testing.T, isDebugLogEnabled bool) (Configu
},
withUpgrade(baseSetup), // base set up with upgrade
containerManager,
config.VanillaUpgradeFilePath,
upgradePath,
0,
), nil
}
3 changes: 2 additions & 1 deletion test/e2e/software_upgrade_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"github.com/stretchr/testify/suite"

"github.com/babylonchain/babylon/test/e2e/configurer"
"github.com/babylonchain/babylon/test/e2e/configurer/config"
)

type SoftwareUpgradeVanillaTestSuite struct {
Expand All @@ -16,7 +17,7 @@ func (s *SoftwareUpgradeVanillaTestSuite) SetupSuite() {
s.T().Log("setting up e2e integration test suite...")
var err error

s.configurer, err = configurer.NewSoftwareUpgradeConfigurer(s.T(), false)
s.configurer, err = configurer.NewSoftwareUpgradeConfigurer(s.T(), false, config.VanillaUpgradeFilePath)
s.NoError(err)
err = s.configurer.ConfigureChains()
s.NoError(err)
Expand Down

0 comments on commit a3a3d6e

Please sign in to comment.