Index: common/testing/assertions/grpc.go |
diff --git a/common/testing/assertions/grpc.go b/common/testing/assertions/grpc.go |
index 4cdab07aa706a11776eb20426cfd316d91e75b7c..a3e30663ff81c8394331a6604e85681ccedc976b 100644 |
--- a/common/testing/assertions/grpc.go |
+++ b/common/testing/assertions/grpc.go |
@@ -7,6 +7,7 @@ package assertions |
import ( |
"fmt" |
+ "github.com/luci/luci-go/grpc/grpcutil" |
"github.com/smartystreets/goconvey/convey" |
"google.golang.org/grpc" |
"google.golang.org/grpc/codes" |
@@ -55,7 +56,7 @@ func ShouldHaveRPCCode(actual interface{}, expected ...interface{}) string { |
return "Expected argument must have the form: [codes.Code[string]]" |
} |
- if acode := grpc.Code(aerr); acode != ecode { |
+ if acode := grpcutil.Code(aerr); acode != ecode { |
return fmt.Sprintf("expected gRPC code %q (%d), not %q (%d), type %T: %v", |
ecode, ecode, acode, acode, actual, actual) |
} |