Add @FlakyTest annotation to @Postsubmit tests
@Postsubmit may be used for something else in the future, so replace the
annotation with the more correct and specific annotation @FlakyTest
Bug: 35710737
Test: No change to behavior
Change-Id: I740c2c9e3cfcd78481d4a6f8f179872cd7832beb
diff --git a/tests/Android.mk b/tests/Android.mk
index f4b8256..1e8b1af 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -20,6 +20,7 @@
LOCAL_STATIC_JAVA_LIBRARIES := \
android-ex-camera2 \
android-support-v4 \
+ android-support-test \
guava \
mockito-target \
platform-test-annotations \
diff --git a/tests/src/com/android/server/telecom/tests/CallLogManagerTest.java b/tests/src/com/android/server/telecom/tests/CallLogManagerTest.java
index 590304c..83cee9d 100644
--- a/tests/src/com/android/server/telecom/tests/CallLogManagerTest.java
+++ b/tests/src/com/android/server/telecom/tests/CallLogManagerTest.java
@@ -34,6 +34,7 @@
import android.platform.test.annotations.Postsubmit;
import android.provider.CallLog;
import android.provider.CallLog.Calls;
+import android.support.test.filters.FlakyTest;
import android.telecom.DisconnectCause;
import android.telecom.PhoneAccount;
import android.telecom.PhoneAccountHandle;
@@ -424,6 +425,7 @@
}
@MediumTest
+ @FlakyTest
@Postsubmit
public void testLogCallDirectionOutgoingWithMultiUserCapability() {
when(mMockPhoneAccountRegistrar.getPhoneAccountUnchecked(any(PhoneAccountHandle.class)))
@@ -518,6 +520,7 @@
}
@MediumTest
+ @FlakyTest
@Postsubmit
public void testLogCallDirectionOutgoingFromManagedProfile() {
when(mMockPhoneAccountRegistrar.getPhoneAccountUnchecked(any(PhoneAccountHandle.class)))