Browse Source

fix(server): wrap credentials in the correct Dial option

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
pull/2355/head
Mark Sagi-Kazar 4 years ago
parent
commit
79721196a8
No known key found for this signature in database
GPG Key ID: 31AB0439F4C5C90E
  1. 2
      server/api_test.go

2
server/api_test.go

@ -42,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(), insecure.NewCredentials())
conn, err := grpc.Dial(l.Addr().String(), grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
t.Fatal(err)
}

Loading…
Cancel
Save