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:
parent
7c2b0a0a06
commit
f74a03be7a
1 changed files with 6 additions and 5 deletions
11
conn_test.go
11
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue