xref: /aosp_15_r20/external/grpc-grpc/src/objective-c/tests/Connectivity/README.md (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1*cc02d7e2SAndroid Build Coastguard WorkerThis app can be used to manually test gRPC under changing network conditions.
2*cc02d7e2SAndroid Build Coastguard Worker
3*cc02d7e2SAndroid Build Coastguard WorkerIt makes RPCs in a loop, logging when the request is sent and the response is received.
4*cc02d7e2SAndroid Build Coastguard Worker
5*cc02d7e2SAndroid Build Coastguard WorkerTo test on the simulator, run `pod install`, open the workspace created by Cocoapods, and run the
6*cc02d7e2SAndroid Build Coastguard Workerapp on an iOS device. Once running, tap a few times of each of the two buttons to make a few unary and streaming
7*cc02d7e2SAndroid Build Coastguard Workercalls. Then disable/enable different network interfaces (WiFi, cellular) on your device.
8*cc02d7e2SAndroid Build Coastguard Worker
9*cc02d7e2SAndroid Build Coastguard WorkerThe expected behavior is that the pending streaming calls fails immediately with error UNAVAILABLE.
10*cc02d7e2SAndroid Build Coastguard WorkerMoreover, when network comes back, new calls have the same behavior.
11*cc02d7e2SAndroid Build Coastguard Worker
12*cc02d7e2SAndroid Build Coastguard Worker```
13*cc02d7e2SAndroid Build Coastguard Worker2016-06-29 16:51:29.443 ConnectivityTestingApp[73129:3567949] Sending request.
14*cc02d7e2SAndroid Build Coastguard Worker```
15