Commit 17cee86
committed
Fix flaky gRPC client tests in sidecar
Add grpc.WaitForReady(true) option to test client connections to handle
race conditions where the gRPC server starts slower than client calls.
This eliminates timing-based test failures in sidecar/internal/reconciler
tests.
The WaitForReady option ensures the client waits for the server to be
ready before sending RPCs, rather than failing immediately if the
connection is not yet established.1 parent 8988265 commit 17cee86
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
0 commit comments