Skip to content

Commit dd3910f

Browse files
authored
Merge pull request #193 from irek02/local
Fix flaky gRPC tests in sidecar
2 parents 588b99b + 17cee86 commit dd3910f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sidecar/internal/test/rpc.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,9 @@ func ClientConn(tmpSockUri string) (*grpc.ClientConn, error) {
8989
return grpc.NewClient(tmpSockUri,
9090
// nothing fancy for unit tests
9191
grpc.WithTransportCredentials(insecure.NewCredentials()),
92+
grpc.WithDefaultCallOptions(
93+
// Handle server starting slower than client calls in tests
94+
grpc.WaitForReady(true),
95+
),
9296
)
9397
}

0 commit comments

Comments
 (0)