summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2016-11-15 13:42:34 +0900
committerLorenzo Colitti <lorenzo@google.com>2017-01-18 19:08:39 +0900
commitbccd8ad00ab299d77a9231b5999d3f9b0194a10a (patch)
tree11deddc124c7bfc44a085a00ab96f54c9ddcd7ee /tools/aapt2/diff/Diff.cpp
parentde7002ef0dc3ad689cb64aa53fc981731dda2499 (diff)
DO NOT MERGE: ConnectivityServiceTest: fix testAvoidBadWifiSettings
This patch introduces an assertEventuallyThat helper function in ConnectivityServiceTest which given a boolean function retries until the function returns true or until a maximum retry time is reached. This function is used to fix flakyness of testAvoidBadWifiSetting where the Message posted by reevaluate() could reach the Handler's MessageQueue after waitForIdle takes effect, resulting in the test to fail. Instead of fixing the flakyness by introdcing hard sleep times, assertEventuallyThat is used to reduce the overall test time. With this change the test has been observed to pass with 100% success rate over 50000 invocations. Test: $ runtest frameworks-net Bug: 32561414 (cherry picked from commit 99c8294ef0c7a720364abb5884063e0a9d1bb5fe) (cherry picked from commit 53d83d51424a496978d2ff2d86845a2284515712) Change-Id: I432f90a699dadfef37a5d0a69e25050753340964
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions