OSDN Git Service

DO NOT MERGE: ConnectivityServiceTest: mark flaky test as such
authorHugo Benichi <hugobenichi@google.com>
Mon, 17 Oct 2016 06:54:51 +0000 (15:54 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Wed, 18 Jan 2017 10:07:59 +0000 (19:07 +0900)
commit86e2765777d0f4cf726f5cac8a581f5769394716
treeb246d53eccdc279150f3923995e52bd4704f6984
parent17586f7f1f54ccdbe1804ba335f46a225312681b
DO NOT MERGE: ConnectivityServiceTest: mark flaky test as such

This patch extracts into its own independent test a test sub-block looking
for a race condition when not waiting on handlers to become idle:
there is no way to prevent the race from not happening when looking for
it this way. This makes the test flakky.

This new independent test is tagged with @FlakkyTest(tolerance = 3).

Test: ConnectivityServiceTest passes, with higher probability.
Bug: 31479480

(cherry picked from commit c8c1027762d66c12c9c153ccbb8f80acdee8571c)

Change-Id: I32632bb763585c23f1de5bb1811a384a35bf9f64
services/tests/servicestests/src/com/android/server/ConnectivityServiceTest.java