Skip to content

Commit

Permalink
Uncomment code
Browse files Browse the repository at this point in the history
The line of code changed in this commit was commented out by accident.
  • Loading branch information
samherrmann committed Feb 21, 2023
1 parent 7c2b0a0 commit f74a03b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"io"
"log"
"net"
"sync"
"testing"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f74a03b

Please sign in to comment.