commit | 349ad30abdeb56e3933574142fb0e0a68785854d | [log] [tgz] |
---|---|---|
author | haya14busa <haya14busa@gmail.com> | Fri Feb 10 01:19:35 2017 +0900 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Thu Feb 09 17:05:06 2017 +0000 |
tree | 02c9050314148e4732d417e7200ce06ed9d8c28f | |
parent | 236b8f043b920452504e263bc21d354427127473 [diff] |
context/ctxhttp: close httptest server Change-Id: Ic8192f74337e021a5d72feb07b9648619d778235 Reviewed-on: https://go-review.googlesource.com/36673 Reviewed-by: Matt Layher <mdlayher@gmail.com> Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
diff --git a/context/ctxhttp/ctxhttp_17_test.go b/context/ctxhttp/ctxhttp_17_test.go index 9f0f90f..72411b1 100644 --- a/context/ctxhttp/ctxhttp_17_test.go +++ b/context/ctxhttp/ctxhttp_17_test.go
@@ -19,6 +19,7 @@ ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { io.WriteString(w, "ok") })) + defer ts.Close() ctx := context.Background() resp, err := Get(ctx, http.DefaultClient, ts.URL) if resp == nil || err != nil {