-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: e2e upgrade read height from proposal file
- Loading branch information
1 parent
93fc9d8
commit 6ea859b
Showing
4 changed files
with
119 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package configurer_test | ||
|
||
import ( | ||
"os" | ||
"path/filepath" | ||
"testing" | ||
|
||
v1 "github.com/babylonlabs-io/babylon/app/upgrades/signetlaunch" | ||
"github.com/babylonlabs-io/babylon/test/e2e/configurer" | ||
"github.com/babylonlabs-io/babylon/test/e2e/configurer/config" | ||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestParseGovPropFromFile(t *testing.T) { | ||
pwd, err := os.Getwd() | ||
require.NoError(t, err) | ||
upgradePath := filepath.Join(pwd, "../", config.UpgradeSignetLaunchFilePath) | ||
|
||
prop, err := configurer.ParseGovPropFromFile(upgradePath) | ||
require.NoError(t, err) | ||
|
||
require.Equal(t, prop.Plan.Name, v1.Upgrade.UpgradeName) | ||
require.Equal(t, prop.Plan.Height, int64(25)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters