From f74a03be7a5abde73b015f396063044c210ff704 Mon Sep 17 00:00:00 2001 From: Sam Herrmann Date: Tue, 21 Feb 2023 12:33:10 -0500 Subject: [PATCH] Uncomment code The line of code changed in this commit was commented out by accident. --- conn_test.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/conn_test.go b/conn_test.go index b982c79..56e0350 100644 --- a/conn_test.go +++ b/conn_test.go @@ -5,6 +5,7 @@ import ( "encoding/json" "fmt" "io" + "log" "net" "sync" "testing" @@ -105,11 +106,11 @@ func TestConn_DisconnectNotify(t *testing.T) { context.Background(), jsonrpc2.NewPlainObjectStream(connB), noopHandler{}, - // // Suppress log message. This connection receives an invalid JSON - // // message that causes an error to be written to the logger. We - // // don't want this expected error to appear in os.Stderr though when - // // running tests in verbose mode or when other tests fail. - // jsonrpc2.SetLogger(log.New(io.Discard, "", 0)), + // Suppress log message. This connection receives an invalid JSON + // message that causes an error to be written to the logger. We + // don't want this expected error to appear in os.Stderr though when + // running tests in verbose mode or when other tests fail. + jsonrpc2.SetLogger(log.New(io.Discard, "", 0)), ) connA.Write([]byte("invalid json")) assertDisconnect(t, c, connB)