diff options
author | 2023-04-19 14:07:42 +0000 | |
---|---|---|
committer | 2023-04-19 14:07:42 +0000 | |
commit | 39d98b34d1766dee24f384e1f0055bc6d995fb50 (patch) | |
tree | ee1acb565d4b3094cbd04d90b7b17e873e0b0fd3 /tests/hostside | |
parent | b5cf1fb397023f0df053afc3174a20253a444000 (diff) |
Ignore atoms from bg location source in tests
I haven't ascertained why this source is sending data so frequently
(on the ATH) that this is a problem, it's not behaving the same way
when running these tests locally.
But this should get the tests back into a stable state regardless and
we can investigate that as a secondary issue if necessary.
If I find that we need to make a third special intervention (to filter
out more atoms from prod sources) then at that point I will do
something more clever like filtering everything from the config or
whatever..
Fix: 278782808
Change-Id: Ie574ada3dc18a0347c7bd15a0618b445db42f62c
Diffstat (limited to 'tests/hostside')
-rw-r--r-- | tests/hostside/safetycenter/src/android/safetycenter/hostside/SafetySourceStateCollectedLoggingHostTest.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/hostside/safetycenter/src/android/safetycenter/hostside/SafetySourceStateCollectedLoggingHostTest.kt b/tests/hostside/safetycenter/src/android/safetycenter/hostside/SafetySourceStateCollectedLoggingHostTest.kt index 610f1111f..ad00450d6 100644 --- a/tests/hostside/safetycenter/src/android/safetycenter/hostside/SafetySourceStateCollectedLoggingHostTest.kt +++ b/tests/hostside/safetycenter/src/android/safetycenter/hostside/SafetySourceStateCollectedLoggingHostTest.kt @@ -120,13 +120,17 @@ class SafetySourceStateCollectedLoggingHostTest : BaseHostJUnit4Test() { .filterNot { // Installing/uninstalling the helper app can cause Play Protect to run a scan and // push new data to Safety Center which interferes with the test results so we - // specifically filter the resultant atoms out using the real encoded source ID + // specifically filter the resultant atoms out using the real encoded source ID. + // Similar failures are also observed on Android Test Hub due to the background + // location source (b/278782808) it.encodedSafetySourceId == PLAY_PROTECT_ENCODED_SOURCE_ID + || it.encodedSafetySourceId == BACKGROUND_LOCATION_ENCODED_SOURCE_ID } private companion object { const val TEST_CLASS_NAME = ".SafetySourceStateCollectedLoggingHelperTests" const val PLAY_PROTECT_ENCODED_SOURCE_ID = 7711894340233229936L + const val BACKGROUND_LOCATION_ENCODED_SOURCE_ID = 7355693215512427559L const val SOURCE_1_ENCODED_SOURCE_ID = 6446219357586936066L const val SOURCE_2_ENCODED_SOURCE_ID = -5887429047684886602L const val SOURCE_3_ENCODED_SOURCE_ID = -619470868366498469L |