Fix flaky test by extending timeout
The asserted capabilities change callback event took 170ms in average to fire on cuttlefish, which causes 35% of flakiness since the event might delay up to 500ms in practice. Extend to 30s timeout value which is the standard value of waiting for network callback events in CTS. This change also ignore the test up to Android R since the API is not available for R devices or below. Test: atest CtsNetTestCases:android.net.cts.ConnectivityManagerTest#testRequestBackgroundNetwork \ --rerun-until-failure 500 Test: atest CtsNetTestCasesLatestSdk:android.net.cts.ConnectivityManagerTest on R device Bug: 179694867 Change-Id: Ic5e11d4a4f326150848bc48038fa01cde39f7661
Please register or sign in to comment