diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-06-10 12:37:34 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-06-10 14:41:23 -0700 |
commit | ee52bf609bac45b3c251858a69071262f46ee89c (patch) | |
tree | 4c079eab4884dc9c32e6f62fe9e2f0ff0d784306 /libgo/go/net/http/transport_test.go | |
parent | 00d07ec6e12451acc7a290cd93be03bed50cb666 (diff) | |
download | gcc-ee52bf609bac45b3c251858a69071262f46ee89c.zip gcc-ee52bf609bac45b3c251858a69071262f46ee89c.tar.gz gcc-ee52bf609bac45b3c251858a69071262f46ee89c.tar.bz2 |
libgo: update to Go1.16.5 release
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/326772
Diffstat (limited to 'libgo/go/net/http/transport_test.go')
-rw-r--r-- | libgo/go/net/http/transport_test.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libgo/go/net/http/transport_test.go b/libgo/go/net/http/transport_test.go index cf1f511..d0202c0 100644 --- a/libgo/go/net/http/transport_test.go +++ b/libgo/go/net/http/transport_test.go @@ -5318,7 +5318,6 @@ func TestMissingStatusNoPanic(t *testing.T) { ln := newLocalListener(t) addr := ln.Addr().String() - shutdown := make(chan bool, 1) done := make(chan bool) fullAddrURL := fmt.Sprintf("http://%s", addr) raw := "HTTP/1.1 400\r\n" + @@ -5330,10 +5329,7 @@ func TestMissingStatusNoPanic(t *testing.T) { "Aloha Olaa" go func() { - defer func() { - ln.Close() - close(done) - }() + defer close(done) conn, _ := ln.Accept() if conn != nil { @@ -5364,7 +5360,7 @@ func TestMissingStatusNoPanic(t *testing.T) { t.Errorf("got=%v want=%q", err, want) } - close(shutdown) + ln.Close() <-done } |