status: remove redundant import (#1947)

This commit is contained in:
dfawley
2018-03-30 13:35:21 -07:00
committed by GitHub
parent 1a70180f35
commit 2dfcc11f7a

View File

@ -24,8 +24,6 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/golang/protobuf/ptypes/any"
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"
"github.com/golang/protobuf/ptypes" "github.com/golang/protobuf/ptypes"
apb "github.com/golang/protobuf/ptypes/any" apb "github.com/golang/protobuf/ptypes/any"
@ -124,7 +122,7 @@ func TestFromErrorOK(t *testing.T) {
type customError struct { type customError struct {
Code codes.Code Code codes.Code
Message string Message string
Details []*any.Any Details []*apb.Any
} }
func (c customError) Error() string { func (c customError) Error() string {
@ -143,7 +141,7 @@ func (c customError) GRPCStatus() *Status {
func TestFromErrorImplementsInterface(t *testing.T) { func TestFromErrorImplementsInterface(t *testing.T) {
code, message := codes.Internal, "test description" code, message := codes.Internal, "test description"
details := []*any.Any{{ details := []*apb.Any{{
TypeUrl: "testUrl", TypeUrl: "testUrl",
Value: []byte("testValue"), Value: []byte("testValue"),
}} }}