Skip to content

Commit

Permalink
chore: fixing compatibility tests (#4876)
Browse files Browse the repository at this point in the history
  • Loading branch information
chatton authored Oct 16, 2023
1 parent e51b603 commit 830982a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion e2e/semverutil/semver.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ func (fr FeatureReleases) IsSupported(versionStr string) bool {
const releasePrefix = "release-"
if strings.HasPrefix(versionStr, releasePrefix) {
versionStr = versionStr[len(releasePrefix):]
versionStr = strings.ReplaceAll(versionStr, "x", "0")
// replace x with 999 so the release version is always larger than the others in the release line.
versionStr = strings.ReplaceAll(versionStr, "x", "999")
}

// assume any non-semantic version formatted version supports the feature
Expand Down
4 changes: 3 additions & 1 deletion e2e/testvalues/values.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,20 @@ var MemoFeatureReleases = semverutil.FeatureReleases{

// TotalEscrowFeatureReleases represents the releases the total escrow state entry was released in.
var TotalEscrowFeatureReleases = semverutil.FeatureReleases{
MajorVersion: "v8",
MinorVersions: []string{
"v7.1",
},
}

// IbcErrorsFeatureReleases represents the releases the IBC module level errors was released in.
var IbcErrorsFeatureReleases = semverutil.FeatureReleases{
MajorVersion: "v8.0",
MajorVersion: "v8",
}

// LocalhostClientFeatureReleases represents the releases the localhost client was released in.
var LocalhostClientFeatureReleases = semverutil.FeatureReleases{
MajorVersion: "v8",
MinorVersions: []string{
"v7.1",
},
Expand Down

0 comments on commit 830982a

Please sign in to comment.