diff --git a/cmd/mesh-controller/usage_test.go b/cmd/mesh-controller/usage_test.go index 3dd8a0c9..034ac0b2 100644 --- a/cmd/mesh-controller/usage_test.go +++ b/cmd/mesh-controller/usage_test.go @@ -10,7 +10,7 @@ import ( // the ones R4e added: `register` and `switch`. func TestTheHelpListsNoRemovedCommandAndTheNewOnes(t *testing.T) { for _, removed := range []string{"build", "rebuild", "forget-checks", "delivery plan"} { - if regexp.MustCompile(`(?m)^ `+regexp.QuoteMeta(removed)+` `).MatchString(usageText) { + if regexp.MustCompile(`(?m)^ ` + regexp.QuoteMeta(removed) + ` `).MatchString(usageText) { t.Errorf("the help still lists %q, which is refused as removed", removed) } }