diff --git a/src/path/filepath/match_test.go b/src/path/filepath/match_test.go index 3bd5598ed9..18d38bf5bb 100644 --- a/src/path/filepath/match_test.go +++ b/src/path/filepath/match_test.go @@ -154,8 +154,8 @@ func TestGlob(t *testing.T) { } func TestGlobError(t *testing.T) { - _, err := Glob("[7]") - if err != nil { + _, err := Glob("[]") + if err == nil { t.Error("expected error for bad pattern; got none") } }