test(context): Change the StringSliceFlag to a pointer
StringSliceFlag needs to be a pointer, and not a struct. Also formatted the test.
See: for a description of the regression
tested for.
@@ -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},
},
},
}
