Skip to content

Commit

Permalink
fix e2e when run on current ws (invalid sem version)
Browse files Browse the repository at this point in the history
  • Loading branch information
bermuell committed Aug 13, 2024
1 parent a4630a5 commit 136843b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/test_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ func (td *DefaultDriver) runAction(action interface{}) error {
target.submitTextProposal(action, td.verbose)
case SubmitConsumerAdditionProposalAction:
target = td.getTargetDriver(action.Chain)
if semver.Compare(semver.Major(target.testConfig.providerVersion), "v5") < 0 {
if semver.IsValid(target.testConfig.providerVersion) && semver.Compare(semver.Major(target.testConfig.providerVersion), "v5") < 0 {
target.submitConsumerAdditionLegacyProposal(action, td.verbose)
} else {
target.submitConsumerAdditionProposal(action, td.verbose)
}
case SubmitConsumerRemovalProposalAction:
target = td.getTargetDriver(action.Chain)
if semver.Compare(semver.Major(target.testConfig.providerVersion), "v5") < 0 {
if semver.IsValid(target.testConfig.providerVersion) && semver.Compare(semver.Major(target.testConfig.providerVersion), "v5") < 0 {
target.submitConsumerRemovalLegacyProposal(action, td.verbose)
} else {
target.submitConsumerRemovalProposal(action, td.verbose)
Expand Down

0 comments on commit 136843b

Please sign in to comment.