Replace calls to deprecated grpc functions

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin
2017-11-28 15:12:05 -05:00
parent 118c0a279e
commit dab3ba2aff
4 changed files with 21 additions and 18 deletions

View File

@@ -3,8 +3,8 @@ package errdefs
import (
"testing"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"github.com/pkg/errors"
)
@@ -31,7 +31,7 @@ func TestGRPCRoundTrip(t *testing.T) {
str: "test test test: failed precondition",
},
{
input: grpc.Errorf(codes.Unavailable, "should be not available"),
input: status.Errorf(codes.Unavailable, "should be not available"),
cause: ErrUnavailable,
str: "should be not available: unavailable",
},