Skip to content

Commit 4e93dc5

Browse files
committed
fixup! Update upgrade details metadata Equals() with new fields
1 parent 54e77f6 commit 4e93dc5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/pkg/agent/application/upgrade/marker_watcher_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"testing"
1313
"time"
1414

15+
"github.com/stretchr/testify/assert"
1516
"go.uber.org/zap/zapcore"
1617

1718
"github.com/stretchr/testify/require"
@@ -126,6 +127,9 @@ details:
126127
expectedDetails: &details.Details{
127128
TargetVersion: "8.9.2",
128129
State: details.StateRollback,
130+
Metadata: details.Metadata{
131+
Reason: details.ReasonWatchFailed,
132+
},
129133
},
130134
},
131135
"same_version_with_details_some_state": {
@@ -303,6 +307,7 @@ details:
303307
markerMu.Lock()
304308
defer markerMu.Unlock()
305309

310+
assert.Equal(t, actualMarker.Details, test.expectedDetails)
306311
require.True(t, actualMarker.Details.Equals(test.expectedDetails))
307312
})
308313

0 commit comments

Comments
 (0)