From 7aa65df74e2720af0bf7e61850f4a02b3f3f3c37 Mon Sep 17 00:00:00 2001 From: David Golub Date: Mon, 24 Jul 2023 10:48:32 -0400 Subject: [PATCH] Fix lint errors Signed-off-by: David Golub --- pipe_test.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pipe_test.go b/pipe_test.go index 894a6cd5..3a9140da 100644 --- a/pipe_test.go +++ b/pipe_test.go @@ -413,7 +413,7 @@ func TestDisconnectPipe(t *testing.T) { go func() { s, err := l.Accept() if err != nil { - t.Fatal(err) + t.Error(err) return } defer func() { @@ -422,15 +422,18 @@ func TestDisconnectPipe(t *testing.T) { }() if _, err := s.Write([]byte(testData)); err != nil { - t.Fatal(err) + t.Error(err) + return } if err := s.(PipeConn).Flush(); err != nil { - t.Fatal(err) + t.Error(err) + return } if err := s.(PipeConn).Disconnect(); err != nil { - t.Fatal(err) + t.Error(err) + return } }()