relax the checking on error string
This commit is contained in:
@ -60,7 +60,7 @@ func TestStopBeforeServe(t *testing.T) {
|
|||||||
// server.Serve is responsible for closing the listener, even if the
|
// server.Serve is responsible for closing the listener, even if the
|
||||||
// server was already stopped.
|
// server was already stopped.
|
||||||
err = lis.Close()
|
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)
|
t.Errorf("Close() error = %q, want %q", got, want)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user