File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ package cmd
6
6
7
7
import (
8
8
"context"
9
+ "log"
9
10
"net"
10
11
"sync/atomic"
11
12
"testing"
@@ -222,7 +223,10 @@ func TestUpgradeCmd(t *testing.T) {
222
223
streams := cli .NewIOStreams ()
223
224
cmd := newUpgradeCommandWithArgs (args , streams )
224
225
cmd .SetContext (context .Background ())
225
- cmd .Flags ().Set ("force" , "true" )
226
+ err = cmd .Flags ().Set ("force" , "true" )
227
+ if err != nil {
228
+ log .Fatal (err )
229
+ }
226
230
227
231
commandInput := & upgradeInput {
228
232
streams ,
@@ -282,7 +286,10 @@ func TestUpgradeCmd(t *testing.T) {
282
286
streams := cli .NewIOStreams ()
283
287
cmd := newUpgradeCommandWithArgs (args , streams )
284
288
cmd .SetContext (context .Background ())
285
- cmd .Flags ().Set ("force" , "true" )
289
+ err = cmd .Flags ().Set ("force" , "true" )
290
+ if err != nil {
291
+ log .Fatal (err )
292
+ }
286
293
287
294
commandInput := & upgradeInput {
288
295
streams ,
You can’t perform that action at this time.
0 commit comments