summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChang Li <licha@google.com>2023-02-02 10:44:40 +0000
committerChang Li <licha@google.com>2023-02-02 10:44:48 +0000
commit58b2e043a4dae155f423f74f9f031db892528e04 (patch)
treed16c547202bd025fb34c0b8a659963d3cbb8acde
parent1e9077ce231e9d5909da15510710901f61db5c38 (diff)
downloadlibtextclassifier-58b2e043a4dae155f423f74f9f031db892528e04.tar.gz
Disable flaky integration test.
Bug: 267344737 Change-Id: I8ae54845f1c82854ea913ee3ffefbd8a16294001
-rw-r--r--TEST_MAPPING7
-rw-r--r--java/tests/instrumentation/src/com/android/textclassifier/downloader/ModelDownloaderIntegrationTest.java2
2 files changed, 8 insertions, 1 deletions
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 370acd6..17a31d4 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -18,7 +18,12 @@
"name": "TextClassifierNotificationTests"
},
{
- "name": "TCSModelDownloaderIntegrationTest"
+ "name": "TCSModelDownloaderIntegrationTest",
+ "options": [
+ {
+ "exclude-annotation": "androidx.test.filters.FlakyTest"
+ }
+ ]
}
],
"hwasan-postsubmit": [
diff --git a/java/tests/instrumentation/src/com/android/textclassifier/downloader/ModelDownloaderIntegrationTest.java b/java/tests/instrumentation/src/com/android/textclassifier/downloader/ModelDownloaderIntegrationTest.java
index e74c7db..bbc2303 100644
--- a/java/tests/instrumentation/src/com/android/textclassifier/downloader/ModelDownloaderIntegrationTest.java
+++ b/java/tests/instrumentation/src/com/android/textclassifier/downloader/ModelDownloaderIntegrationTest.java
@@ -20,6 +20,7 @@ import static com.google.common.truth.Truth.assertThat;
import android.view.textclassifier.TextClassification;
import android.view.textclassifier.TextClassification.Request;
+import androidx.test.filters.FlakyTest;
import com.android.textclassifier.testing.ExtServicesTextClassifierRule;
import org.junit.After;
import org.junit.Before;
@@ -122,6 +123,7 @@ public class ModelDownloaderIntegrationTest {
}
@Test
+ @FlakyTest(bugId = 267344737)
public void modelsForMultipleLanguagesDownloaded() throws Exception {
extServicesTextClassifierRule.addDeviceConfigOverride("multi_language_support_enabled", "true");
extServicesTextClassifierRule.addDeviceConfigOverride(