From 827be89a69534cca8245df9c435d13387eea9667 Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Thu, 15 Jun 2017 22:18:24 +0200 Subject: [PATCH] path/filepath: fix TestGlobError Change-Id: I7776547332066e1d7651e9aa06eec301dfaf38bc Reviewed-on: https://go-review.googlesource.com/45892 Reviewed-by: Rob Pike Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- src/path/filepath/match_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") } } -- 2.50.0