File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
internal/pkg/agent/application/upgrade Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import (
12
12
"testing"
13
13
"time"
14
14
15
+ "github.com/stretchr/testify/assert"
15
16
"go.uber.org/zap/zapcore"
16
17
17
18
"github.com/stretchr/testify/require"
@@ -126,6 +127,9 @@ details:
126
127
expectedDetails : & details.Details {
127
128
TargetVersion : "8.9.2" ,
128
129
State : details .StateRollback ,
130
+ Metadata : details.Metadata {
131
+ Reason : details .ReasonWatchFailed ,
132
+ },
129
133
},
130
134
},
131
135
"same_version_with_details_some_state" : {
@@ -303,6 +307,7 @@ details:
303
307
markerMu .Lock ()
304
308
defer markerMu .Unlock ()
305
309
310
+ assert .Equal (t , actualMarker .Details , test .expectedDetails )
306
311
require .True (t , actualMarker .Details .Equals (test .expectedDetails ))
307
312
})
308
313
You can’t perform that action at this time.
0 commit comments