From 243661155e24bcebc53a1763669d9042d8856057 Mon Sep 17 00:00:00 2001 From: Stephen Augustus Date: Fri, 17 Dec 2021 19:39:03 -0500 Subject: [PATCH] server: grpc.WithInsecure is now insecure.NewCredentials() Signed-off-by: Stephen Augustus --- server/api_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/api_test.go b/server/api_test.go index 02061340..76c98749 100644 --- a/server/api_test.go +++ b/server/api_test.go @@ -9,6 +9,7 @@ import ( "github.com/sirupsen/logrus" "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" "github.com/dexidp/dex/api/v2" "github.com/dexidp/dex/pkg/log" @@ -41,7 +42,7 @@ func newAPI(s storage.Storage, logger log.Logger, t *testing.T) *apiClient { // Dial will retry automatically if the serv.Serve() goroutine // hasn't started yet. - conn, err := grpc.Dial(l.Addr().String(), grpc.WithInsecure()) + conn, err := grpc.Dial(l.Addr().String(), insecure.NewCredentials()) if err != nil { t.Fatal(err) }