1
0
Fork 0
mirror of https://github.com/sourcegraph/jsonrpc2.git synced 2026-06-17 04:30:04 +02:00

Uncomment code

The line of code changed in this commit was commented out by accident.
This commit is contained in:
Sam Herrmann 2023-02-21 12:33:10 -05:00
parent 7c2b0a0a06
commit f74a03be7a

View file

@ -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)