OSDN Git Service

Attempt to de-flake tests.
authorAlan Stokes <alanstokes@google.com>
Mon, 4 Feb 2019 15:32:12 +0000 (15:32 +0000)
committerAlan Stokes <alanstokes@google.com>
Mon, 18 Feb 2019 16:59:56 +0000 (16:59 +0000)
commit206a69d4098abad9b0853f30b28704e343e0fd19
tree8533a51dd9fdc9078d68866bb728cf748c235865
parente4f26ef212666a2d605261026d36c30a339f2bbf
Attempt to de-flake tests.

Some of these tests rely on audit logs being generated and then
visible when we try to read them. Occasionally this doesn't work -
probably because of throttling or the asynchronous, background nature
of logging. When it happens the tests fail.

To avoid this, re-run the susceptible tests multiple times rather than
failing on the first go, with increasingly long delays between
triggering and reading the logs on each run.

Bug: 123507824
Test: atest -p services/core/java/com/android/server/pm/dex
Change-Id: I62db997c912b2d153ecaea34011529c4c58207c7
tests/DexLoggerIntegrationTests/src/com/android/server/pm/dex/DexLoggerIntegrationTests.java