From 5a00701741af60f352330c177290795489698544 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Fri, 19 Jul 2024 20:22:33 -0400 Subject: [PATCH] nolint --- bench_test.go | 2 +- conn_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bench_test.go b/bench_test.go index 7b236f6d8..885b311f2 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 8ce94b3f7..03364e2af 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{}{}