diff --git a/src/net/rpc/jsonrpc/all_test.go b/src/net/rpc/jsonrpc/all_test.go index f4e1278d03e..e2ccdfc6fb8 100644 --- a/src/net/rpc/jsonrpc/all_test.go +++ b/src/net/rpc/jsonrpc/all_test.go @@ -5,7 +5,6 @@ package jsonrpc import ( - "bytes" "encoding/json" "errors" "fmt" @@ -262,7 +261,7 @@ func TestMalformedOutput(t *testing.T) { } func TestServerErrorHasNullResult(t *testing.T) { - var out bytes.Buffer + var out strings.Builder sc := NewServerCodec(struct { io.Reader io.Writer