Skip to content
Snippets Groups Projects
Commit 8d2425a7 authored by Atneya Nair's avatar Atneya Nair
Browse files

Mark FakeLatencyTracker as flaky

DeviceConfig callbacks often block indef and cause test module timeouts.

Add a test timeout for this class and mark them as flaky to take out of
presubmit.

TODO: 275746222 - don't rely on these callbacks, and instead mock/fake
the config, since it isn't related to what we are testing.

Bug: 287361279
Bug: 303578791

Change-Id: I603ebe0ceac23335248a8cdb299d52829b55536a
Merged-In: I603ebe0ceac23335248a8cdb299d52829b55536a
parent cabf940d
No related branches found
No related tags found
No related merge requests found
......@@ -38,13 +38,16 @@ import android.os.BatteryStatsInternal;
import android.os.Process;
import android.os.RemoteException;
import androidx.test.filters.FlakyTest;
import androidx.test.platform.app.InstrumentationRegistry;
import com.android.internal.util.FakeLatencyTracker;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Timeout;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.mockito.ArgumentCaptor;
......@@ -52,8 +55,12 @@ import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
@RunWith(JUnit4.class)
@FlakyTest(bugId = 275746222)
public class SoundTriggerMiddlewareLoggingLatencyTest {
@Rule
public Timeout mGlobalTimeout = Timeout.seconds(30);
private FakeLatencyTracker mLatencyTracker;
@Mock
private BatteryStatsInternal mBatteryStatsInternal;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment