trace: fix TestGRPCInterceptor
Add grpc.WithBlock to Dial of local server.
Something in gRPC doesn't like asynchronous dials of in-process
servers.
@@ -142,7 +142,7 @@ func testGRPCInterceptor(t *testing.T, tc *Client, parent *Span, assert func(t *
}()
addr := <-addrCh
- conn, err := grpc.Dial(addr.String(), grpc.WithInsecure(), grpc.WithUnaryInterceptor(tc.GRPCClientInterceptor()))
+ conn, err := grpc.Dial(addr.String(), grpc.WithInsecure(), grpc.WithBlock(), grpc.WithUnaryInterceptor(tc.GRPCClientInterceptor()))
if err != nil {
t.Fatalf("Did not connect: %v", err)
}
