support unix sockets (#26)

This commit is contained in:
Joshua Humphries
2018-03-27 11:24:35 -04:00
committed by GitHub
parent 09a863d763
commit ca5693f42c
6 changed files with 70 additions and 16 deletions

View File

@@ -316,7 +316,7 @@ func createTestServerAndClient(serverCreds, clientCreds credentials.TransportCre
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
defer cancel()
cc, err := BlockingDial(ctx, fmt.Sprintf("127.0.0.1:%d", port), clientCreds)
cc, err := BlockingDial(ctx, "tcp", fmt.Sprintf("127.0.0.1:%d", port), clientCreds)
if err != nil {
return e, err
}