Skip to content

Commit be618e6

Browse files
authored
Add grpc.WithBlock() to stabilize the tests
1 parent abd15e5 commit be618e6

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/google.golang.org/grpc/otelgrpc/test

1 file changed

+1
-1
lines changed

instrumentation/google.golang.org/grpc/otelgrpc/test/grpc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func newGrpcTest(listener net.Listener, cOpt []grpc.DialOption, sOpt []grpc.Serv
5858
}()
5959
ctx := context.Background()
6060

61-
cOpt = append(cOpt, grpc.WithTransportCredentials(insecure.NewCredentials()))
61+
cOpt = append(cOpt, grpc.WithBlock(), grpc.WithTransportCredentials(insecure.NewCredentials()))
6262

6363
if l, ok := listener.(interface{ Dial() (net.Conn, error) }); ok {
6464
dial := func(context.Context, string) (net.Conn, error) { return l.Dial() }

0 commit comments

Comments
 (0)