From ba23d25e3a10a341be227a75202deb6d2c99bf41 Mon Sep 17 00:00:00 2001 From: Menghan Li Date: Thu, 2 Mar 2017 15:21:41 -0800 Subject: [PATCH] relax the checking on error string --- server_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_test.go b/server_test.go index 23838806..53968cc2 100644 --- a/server_test.go +++ b/server_test.go @@ -60,7 +60,7 @@ func TestStopBeforeServe(t *testing.T) { // server.Serve is responsible for closing the listener, even if the // server was already stopped. err = lis.Close() - if got, want := ErrorDesc(err), "use of closed network connection"; !strings.Contains(got, want) { + if got, want := ErrorDesc(err), "use of closed"; !strings.Contains(got, want) { t.Errorf("Close() error = %q, want %q", got, want) } }