diff options
author | Riya Thakur <riyathakur@google.com> | 2023-08-01 16:35:19 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2023-08-01 16:35:19 +0000 |
commit | c7681b34117ca1a2cbc592447f654375abab45c0 (patch) | |
tree | 93053fdcb669f7cb88120494ea985093c7f860c2 | |
parent | dcf19c4456be6f5b69468353da027412fa030a6a (diff) | |
parent | f0bcbc79e048813c4ef37b14ca450d4d4b92a19c (diff) | |
download | cts-c7681b34117ca1a2cbc592447f654375abab45c0.tar.gz |
Merge "Fixed flaky tests of CtsAppCompatHostTestCases#CompatChangesSelinuxTest" into udc-dev
-rw-r--r-- | hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/CompatChangesSelinuxTest.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/CompatChangesSelinuxTest.java b/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/CompatChangesSelinuxTest.java index aa87d2a0e61..377e089b9a5 100644 --- a/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/CompatChangesSelinuxTest.java +++ b/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/CompatChangesSelinuxTest.java @@ -17,15 +17,12 @@ package com.android.cts.appcompat; import static com.google.common.truth.Truth.assertThat; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; import android.compat.cts.CompatChangeGatingTestCase; import com.google.common.collect.ImmutableSet; import java.util.HashMap; -import java.util.HashSet; import java.util.Map; import java.util.Set; import java.util.regex.Matcher; @@ -66,7 +63,7 @@ public class CompatChangesSelinuxTest extends CompatChangeGatingTestCase { final long configId = getClass().getCanonicalName().hashCode(); installPackage(Q_TEST_APK, false); - Thread.currentThread().sleep(100); + Thread.currentThread().sleep(200); setCompatConfig(enabledChanges, disabledChanges, TEST_PKG); try { @@ -86,7 +83,7 @@ public class CompatChangesSelinuxTest extends CompatChangeGatingTestCase { final Set<Long> disabledChanges = ImmutableSet.of(); installPackage(Q_TEST_APK, false); - Thread.currentThread().sleep(100); + Thread.currentThread().sleep(200); setCompatConfig(enabledChanges, disabledChanges, TEST_PKG); try { @@ -116,7 +113,7 @@ public class CompatChangesSelinuxTest extends CompatChangeGatingTestCase { final Set<Long> enabledChanges = ImmutableSet.of(SELINUX_LATEST_CHANGES); final Set<Long> disabledChanges = ImmutableSet.of(); installPackage(R_TEST_APK, false); - Thread.currentThread().sleep(100); + Thread.currentThread().sleep(200); setCompatConfig(enabledChanges, disabledChanges, TEST_PKG); try { |