diff --git a/bench_test.go b/bench_test.go index 7b236f6d..885b311f 100644 --- a/bench_test.go +++ b/bench_test.go @@ -40,7 +40,7 @@ func TestSimpleReadWrite(t *testing.T) { return } buf := make([]byte, 1024) - if _, sErr = server.Read(buf); sErr != nil { + if _, sErr = server.Read(buf); sErr != nil { //nolint:contextcheck t.Error(sErr) } gotHello <- struct{}{} diff --git a/conn_test.go b/conn_test.go index 8ce94b3f..03364e2a 100644 --- a/conn_test.go +++ b/conn_test.go @@ -3247,7 +3247,7 @@ func TestSkipHelloVerify(t *testing.T) { return } buf := make([]byte, 1024) - if _, sErr = server.Read(buf); sErr != nil { + if _, sErr = server.Read(buf); sErr != nil { //nolint:contextcheck t.Error(sErr) } gotHello <- struct{}{} @@ -3412,7 +3412,7 @@ func TestHelloRandom(t *testing.T) { return } buf := make([]byte, 1024) - if _, sErr = server.Read(buf); sErr != nil { + if _, sErr = server.Read(buf); sErr != nil { //nolint:contextcheck t.Error(sErr) } gotHello <- struct{}{}