Skip to content

Commit

Permalink
Add grpc.WithBlock() to stabilize the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared authored Nov 6, 2023
1 parent abd15e5 commit be618e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func newGrpcTest(listener net.Listener, cOpt []grpc.DialOption, sOpt []grpc.Serv
}()
ctx := context.Background()

cOpt = append(cOpt, grpc.WithTransportCredentials(insecure.NewCredentials()))
cOpt = append(cOpt, grpc.WithBlock(), grpc.WithTransportCredentials(insecure.NewCredentials()))

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

0 comments on commit be618e6

Please sign in to comment.