File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
internal/pkg/agent/application/upgrade Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ package details
6
6
7
7
import (
8
8
"math"
9
+ "slices"
9
10
"sync"
10
11
"time"
11
12
@@ -244,7 +245,9 @@ func (m Metadata) Equals(otherM Metadata) bool {
244
245
m .DownloadPercent == otherM .DownloadPercent &&
245
246
m .DownloadRate == otherM .DownloadRate &&
246
247
equalTimePointers (m .RetryUntil , otherM .RetryUntil ) &&
247
- m .RetryErrorMsg == otherM .RetryErrorMsg
248
+ m .RetryErrorMsg == otherM .RetryErrorMsg &&
249
+ m .Reason == otherM .Reason &&
250
+ slices .Equal (m .RollbacksAvailable , otherM .RollbacksAvailable )
248
251
}
249
252
250
253
func equalTimePointers (t , otherT * time.Time ) bool {
Original file line number Diff line number Diff line change @@ -126,6 +126,9 @@ details:
126
126
expectedDetails : & details.Details {
127
127
TargetVersion : "8.9.2" ,
128
128
State : details .StateRollback ,
129
+ Metadata : details.Metadata {
130
+ Reason : details .ReasonWatchFailed ,
131
+ },
129
132
},
130
133
},
131
134
"same_version_with_details_some_state" : {
You can’t perform that action at this time.
0 commit comments