Skip to content

Commit

Permalink
test(context): Change the StringSliceFlag to a pointer
Browse files Browse the repository at this point in the history
StringSliceFlag needs to be a pointer, and not a struct.

See: urfave#1126 for a description of the regression
tested for.

Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
  • Loading branch information
Ole Petter committed May 3, 2020
1 parent 710c8f7 commit a408746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context_test.go
Expand Up @@ -539,7 +539,7 @@ func TestCheckRequiredFlags(t *testing.T) {
expectedAnError: true,
expectedErrorContents: []string{"Required flag \"names\" not set"},
flags: []Flag{
StringSliceFlag{Name: "names, n", Required: true},
&StringSliceFlag{Name: "names, n", Required: true},
},
},
}
Expand Down

0 comments on commit a408746

Please sign in to comment.