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>
Thu, 8 Dec 2016 08:13:34 +0000 (17:13 +0900)
commit5d540d141027d818d1beb8b030d35ee9489b2e8a
tree08b2af859a1d60d733badd6e6f1aa00cd032d6f4
parent1f64f3fd14caca5ace9bfdbb036e3711d5484de3
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: I3c702bd981ed80ed606be0fb52d61eb3d7195a6f
services/tests/servicestests/src/com/android/server/ConnectivityServiceTest.java