Commit 9158396
[ObjC] Deflak cf stream endpoint connect timeout cancel tests (grpc#39494)
To test connection timeout or cancel, it needs a routable address that the test cannot connect.
Previously used IP started behave weirdly (after the mac environment update?) causing those tests to fail with unknown error, this PR uses a well know IP but a unreachable port for test. A few other PRs are opened to verify it's not flaky anymore but test results are cached, tried kokoro force run and using different base but it's hard to tell as they don't necessarily fail without the fix.
For the EINTR error, retry should not be needed in real world as the [cf network stack](https://github.com/opensource-apple/CF/blob/master/CFSocket.c#L66) is already doing this. The old cfstream implementation for iomgr wasn't doing retry either.
Closes grpc#39494
COPYBARA_INTEGRATE_REVIEW=grpc#39494 from HannahShiSFB:flaky-cf-stream-endpoint-connect-timeout-deadline-tests2 73e7813
PiperOrigin-RevId: 7560256841 parent 08fa152 commit 9158396
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments