Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: David Golub <[email protected]>
  • Loading branch information
dgolub committed Jul 24, 2023
1 parent b8d8194 commit 7aa65df
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pipe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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
}
}()

Expand Down

0 comments on commit 7aa65df

Please sign in to comment.