Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Schurter <[email protected]>
  • Loading branch information
rboyer and schmichael authored Aug 6, 2024
1 parent 67ad8ea commit 88ad8a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,12 @@ func TestNonNilInterface(t *testing.T) {
t.Fatal("bad: accept should return a shutdown error and a connection of nil value")
}
if err != nil && conn != nil {
t.Fatal("bad: accept should return a connection of nil value")
t.Error("bad: accept should return a connection of nil value")
}

conn, err = server.Open()
if err == nil || !errors.Is(err, ErrSessionShutdown) || conn != nil {
t.Fatal("bad: accept should return a shutdown error and a connection of nil value")
t.Fatal("bad: open should return a shutdown error and a connection of nil value")
}
}

Expand Down

0 comments on commit 88ad8a5

Please sign in to comment.