OSDN Git Service

ConnectivityServiceTest: mark flaky test as such
authorHugo Benichi <hugobenichi@google.com>
Mon, 17 Oct 2016 06:54:51 +0000 (15:54 +0900)
committerHugo Benichi <hugobenichi@google.com>
Thu, 27 Oct 2016 00:38:54 +0000 (09:38 +0900)
commitc8c1027762d66c12c9c153ccbb8f80acdee8571c
tree20cb4c789ddad90ec1d677bbecd48d5bc5a14d1c
parentc69f693216d548876ced98c14f6a9e7e0d1acf04
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
Change-Id: Ic0e2ffbe669f2ea8cc62e8a0d4763703368db019
services/tests/servicestests/src/com/android/server/ConnectivityServiceTest.java