@@ -116,8 +116,8 @@ func TestClientServerConfigCompatibility(t *testing.T) {
116
116
wait := make (chan struct {})
117
117
118
118
pipeA , pipeB := net .Pipe ()
119
- defer pipeA .Close () //nolint:errcheck,gosec
120
- defer pipeB .Close () //nolint:errcheck,gosec
119
+ defer pipeA .Close () //nolint:errcheck
120
+ defer pipeB .Close () //nolint:errcheck
121
121
defer func () {
122
122
<- wait
123
123
}()
@@ -178,8 +178,8 @@ func TestClientServerErrorIfKeyAndNameDiffers(t *testing.T) {
178
178
wait := make (chan struct {})
179
179
180
180
pipeA , pipeB := net .Pipe ()
181
- defer pipeA .Close () //nolint:errcheck,gosec
182
- defer pipeB .Close () //nolint:errcheck,gosec
181
+ defer pipeA .Close () //nolint:errcheck
182
+ defer pipeB .Close () //nolint:errcheck
183
183
defer func () {
184
184
<- wait
185
185
}()
@@ -236,8 +236,8 @@ func TestClientServerErrorIfKeyDiffers(t *testing.T) {
236
236
wait := make (chan struct {})
237
237
238
238
pipeA , pipeB := net .Pipe ()
239
- defer pipeA .Close () //nolint:errcheck,gosec
240
- defer pipeB .Close () //nolint:errcheck,gosec
239
+ defer pipeA .Close () //nolint:errcheck
240
+ defer pipeB .Close () //nolint:errcheck
241
241
defer func () {
242
242
<- wait
243
243
}()
@@ -308,7 +308,7 @@ func TestDialListen(t *testing.T) {
308
308
return
309
309
}
310
310
311
- defer conn .Close () //nolint:errcheck,gosec
311
+ defer conn .Close () //nolint:errcheck
312
312
313
313
_ , err = conn .Write (testData )
314
314
if err != nil {
@@ -321,7 +321,7 @@ func TestDialListen(t *testing.T) {
321
321
t .Fatalf ("accept: %v" , err )
322
322
}
323
323
324
- defer conn .Close () //nolint:errcheck,gosec
324
+ defer conn .Close () //nolint:errcheck
325
325
326
326
receivedData := make ([]byte , len (testData ))
327
327
0 commit comments