File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -5314,7 +5314,6 @@ func TestMissingStatusNoPanic(t *testing.T) {
5314
5314
5315
5315
ln := newLocalListener (t )
5316
5316
addr := ln .Addr ().String ()
5317
- shutdown := make (chan bool , 1 )
5318
5317
done := make (chan bool )
5319
5318
fullAddrURL := fmt .Sprintf ("http://%s" , addr )
5320
5319
raw := "HTTP/1.1 400\r \n " +
@@ -5326,10 +5325,7 @@ func TestMissingStatusNoPanic(t *testing.T) {
5326
5325
"Aloha Olaa"
5327
5326
5328
5327
go func () {
5329
- defer func () {
5330
- ln .Close ()
5331
- close (done )
5332
- }()
5328
+ defer close (done )
5333
5329
5334
5330
conn , _ := ln .Accept ()
5335
5331
if conn != nil {
@@ -5360,7 +5356,7 @@ func TestMissingStatusNoPanic(t *testing.T) {
5360
5356
t .Errorf ("got=%v want=%q" , err , want )
5361
5357
}
5362
5358
5363
- close ( shutdown )
5359
+ ln . Close ( )
5364
5360
<- done
5365
5361
}
5366
5362
You can’t perform that action at this time.
0 commit comments