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:
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"
|
"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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue