-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TestStandaloneUpgradeRollback (#5445)
This commit fixes two problems: 1. When getting the Elastic-Agent status to check for state.UpgradeDetails, it could happen that the upgrade had already finished, thus state.UpgradeDetails was nil. Now we only check for state.UpgradeDetails if the status is upgrading 2. When CheckHealthyAndVersion checks for the version during the rollback it could get the previous version, thus failing. This is fixed by ignoring version mismatch error.
- Loading branch information
Showing
2 changed files
with
22 additions
and
3 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