We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ed3859 commit 56c2fa6Copy full SHA for 56c2fa6
1 file changed
e2e/cli-plugins/help_test.go
@@ -42,7 +42,8 @@ func TestGlobalHelp(t *testing.T) {
42
`Invalid Plugins:`,
43
`\s+badmeta\s+invalid metadata: invalid character 'i' looking for beginning of object key string`,
44
} {
45
- expected := regexp.MustCompile(`(?m)^` + s + `$`)
+ expected, err := regexp.Compile(`(?m)^` + s + `$`)
46
+ assert.NilError(t, err)
47
matches := expected.FindAllString(output, -1)
48
assert.Equal(t, len(matches), 1, "Did not find expected number of matches for %q in `docker help` output", expected)
49
}
0 commit comments