From 461ff4eb4257e90d250a0866589346aa0bcbbf3e Mon Sep 17 00:00:00 2001 From: chatton Date: Mon, 16 Oct 2023 12:33:50 +0100 Subject: [PATCH] chore: fixing compatibility tests --- e2e/semverutil/semver.go | 3 ++- e2e/testvalues/values.go | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/e2e/semverutil/semver.go b/e2e/semverutil/semver.go index c8585d3cdd7..8c93920b9cc 100644 --- a/e2e/semverutil/semver.go +++ b/e2e/semverutil/semver.go @@ -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 diff --git a/e2e/testvalues/values.go b/e2e/testvalues/values.go index 9b2f7b6d4df..ddddc54e1bf 100644 --- a/e2e/testvalues/values.go +++ b/e2e/testvalues/values.go @@ -77,6 +77,7 @@ 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", }, @@ -84,11 +85,12 @@ var TotalEscrowFeatureReleases = semverutil.FeatureReleases{ // 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", },