@@ -12,7 +12,6 @@ import (
1212 "github.com/grpc-ecosystem/grpc-gateway/internal"
1313 "github.com/grpc-ecosystem/grpc-gateway/runtime"
1414 pb "github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb"
15- "google.golang.org/grpc"
1615 "google.golang.org/grpc/codes"
1716 "google.golang.org/grpc/status"
1817)
@@ -49,13 +48,13 @@ func TestForwardResponseStream(t *testing.T) {
4948 statusCode : http .StatusOK ,
5049 }, {
5150 name : "error" ,
52- msgs : []msg {{nil , grpc .Errorf (codes .OutOfRange , "400" )}},
51+ msgs : []msg {{nil , status .Errorf (codes .OutOfRange , "400" )}},
5352 statusCode : http .StatusBadRequest ,
5453 }, {
5554 name : "stream_error" ,
5655 msgs : []msg {
5756 {& pb.SimpleMessage {Id : "One" }, nil },
58- {nil , grpc .Errorf (codes .OutOfRange , "400" )},
57+ {nil , status .Errorf (codes .OutOfRange , "400" )},
5958 },
6059 statusCode : http .StatusOK ,
6160 }, {
@@ -70,7 +69,7 @@ func TestForwardResponseStream(t *testing.T) {
7069 name : "response body stream error case" ,
7170 msgs : []msg {
7271 {fakeReponseBodyWrapper {& pb.SimpleMessage {Id : "One" }}, nil },
73- {nil , grpc .Errorf (codes .OutOfRange , "400" )},
72+ {nil , status .Errorf (codes .OutOfRange , "400" )},
7473 },
7574 responseBody : true ,
7675 statusCode : http .StatusOK ,
@@ -203,13 +202,13 @@ func TestForwardResponseStreamCustomMarshaler(t *testing.T) {
203202 statusCode : http .StatusOK ,
204203 }, {
205204 name : "error" ,
206- msgs : []msg {{nil , grpc .Errorf (codes .OutOfRange , "400" )}},
205+ msgs : []msg {{nil , status .Errorf (codes .OutOfRange , "400" )}},
207206 statusCode : http .StatusBadRequest ,
208207 }, {
209208 name : "stream_error" ,
210209 msgs : []msg {
211210 {& pb.SimpleMessage {Id : "One" }, nil },
212- {nil , grpc .Errorf (codes .OutOfRange , "400" )},
211+ {nil , status .Errorf (codes .OutOfRange , "400" )},
213212 },
214213 statusCode : http .StatusOK ,
215214 }}
0 commit comments