File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package gerrit_test
22
33import (
44 "bytes"
5- "encoding/json"
65 "fmt"
76 "io/ioutil"
87 "net/http"
@@ -139,25 +138,6 @@ func TestNewRequest(t *testing.T) {
139138 }
140139}
141140
142- func TestNewRequest_InvalidJSON (t * testing.T ) {
143- c , err := gerrit .NewClient (testGerritInstanceURL , nil )
144- if err != nil {
145- t .Errorf ("An error occured. Expected nil. Got %+v." , err )
146- }
147-
148- type T struct {
149- A map [int ]interface {}
150- }
151- _ , err = c .NewRequest ("GET" , "/" , & T {})
152-
153- if err == nil {
154- t .Error ("Expected error to be returned." )
155- }
156- if err , ok := err .(* json.UnsupportedTypeError ); ! ok {
157- t .Errorf ("Expected a JSON error; got %#v." , err )
158- }
159- }
160-
161141func testURLParseError (t * testing.T , err error ) {
162142 if err == nil {
163143 t .Errorf ("Expected error to be returned" )
You can’t perform that action at this time.
0 commit comments