1
0
Fork 0
mirror of https://github.com/sourcegraph/jsonrpc2.git synced 2026-07-04 00:03:41 +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" "encoding/json"
"fmt" "fmt"
"io" "io"
"log"
"net" "net"
"sync" "sync"
"testing" "testing"
@ -105,11 +106,11 @@ func TestConn_DisconnectNotify(t *testing.T) {
context.Background(), context.Background(),
jsonrpc2.NewPlainObjectStream(connB), jsonrpc2.NewPlainObjectStream(connB),
noopHandler{}, noopHandler{},
// // Suppress log message. This connection receives an invalid JSON // Suppress log message. This connection receives an invalid JSON
// // message that causes an error to be written to the logger. We // 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 // don't want this expected error to appear in os.Stderr though when
// // running tests in verbose mode or when other tests fail. // running tests in verbose mode or when other tests fail.
// jsonrpc2.SetLogger(log.New(io.Discard, "", 0)), jsonrpc2.SetLogger(log.New(io.Discard, "", 0)),
) )
connA.Write([]byte("invalid json")) connA.Write([]byte("invalid json"))
assertDisconnect(t, c, connB) assertDisconnect(t, c, connB)