Skip to content

Commit

Permalink
Fix local upgrade test (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin authored Mar 17, 2023
1 parent 3512dd8 commit 0518edd
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions interchaintest/upgradeauthority_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ func TestNobleChainUpgrade(t *testing.T) {

client, network := interchaintest.DockerSetup(t)

_, version := integration.GetDockerImageInfo()
repo, version := integration.GetDockerImageInfo()

var noble *cosmos.CosmosChain
var roles NobleRoles
var paramauthorityWallet Authority

const (
upgradeName = "neon"
upgradeName = "neon"
preUpgradeRepo = "ghcr.io/strangelove-ventures/noble"
preUpgradeVersion = "v0.3.0"
)

chainCfg := ibc.ChainConfig{
Expand All @@ -65,8 +67,8 @@ func TestNobleChainUpgrade(t *testing.T) {
NoHostMount: false,
Images: []ibc.DockerImage{
{
Repository: "ghcr.io/strangelove-ventures/noble",
Version: "v0.3.0",
Repository: preUpgradeRepo,
Version: preUpgradeVersion,
UidGid: "1025:1025",
},
},
Expand Down Expand Up @@ -193,7 +195,9 @@ func TestNobleChainUpgrade(t *testing.T) {
require.NoError(t, err, "error stopping node(s)")

// upgrade version and repo on all nodes
// TODO: fix local testing
for _, n := range noble.Nodes() {
n.Image.Repository = repo
}
noble.UpgradeVersion(ctx, client, version)

// start all nodes back up.
Expand Down

0 comments on commit 0518edd

Please sign in to comment.