| 1 |
This app can be used to manually test gRPC under changing network conditions. |
| 2 |
|
| 3 |
It makes RPCs in a loop, logging when the request is sent and the response is received. |
| 4 |
|
| 5 |
To test on the simulator, run `pod install`, open the workspace created by Cocoapods, and run the |
| 6 |
app on an iOS device. Once running, tap a few times of each of the two buttons to make a few unary and streaming |
| 7 |
calls. Then disable/enable different network interfaces (WiFi, cellular) on your device. |
| 8 |
|
| 9 |
The expected behavior is that the pending streaming calls fails immediately with error UNAVAILABLE. |
| 10 |
Moreover, when network comes back, new calls have the same behavior. |
| 11 |
|
| 12 |
``` |
| 13 |
2016-06-29 16:51:29.443 ConnectivityTestingApp[73129:3567949] Sending request. |
| 14 |
``` |