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 @@ -5270,7 +5270,6 @@ func TestMissingStatusNoPanic(t *testing.T) {
5270
5270
5271
5271
ln := newLocalListener (t )
5272
5272
addr := ln .Addr ().String ()
5273
- shutdown := make (chan bool , 1 )
5274
5273
done := make (chan bool )
5275
5274
fullAddrURL := fmt .Sprintf ("http://%s" , addr )
5276
5275
raw := "HTTP/1.1 400\r \n " +
@@ -5282,10 +5281,7 @@ func TestMissingStatusNoPanic(t *testing.T) {
5282
5281
"Aloha Olaa"
5283
5282
5284
5283
go func () {
5285
- defer func () {
5286
- ln .Close ()
5287
- close (done )
5288
- }()
5284
+ defer close (done )
5289
5285
5290
5286
conn , _ := ln .Accept ()
5291
5287
if conn != nil {
@@ -5316,7 +5312,7 @@ func TestMissingStatusNoPanic(t *testing.T) {
5316
5312
t .Errorf ("got=%v want=%q" , err , want )
5317
5313
}
5318
5314
5319
- close ( shutdown )
5315
+ ln . Close ( )
5320
5316
<- done
5321
5317
}
5322
5318
You can’t perform that action at this time.
0 commit comments