From 88ad8a57ac7cffc8b44a605b892061648fbfc3e9 Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" <4903+rboyer@users.noreply.github.com> Date: Tue, 6 Aug 2024 11:30:01 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Michael Schurter --- session_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/session_test.go b/session_test.go index ffc4670..46e9233 100644 --- a/session_test.go +++ b/session_test.go @@ -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") } }