Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f72a8b20 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Increase delay time for ScanManagerTest" into main

parents 97bff038 2388d6de
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ import java.util.concurrent.TimeUnit;
@RunWith(AndroidJUnit4.class)
public class ScanManagerTest {
    private static final String TAG = ScanManagerTest.class.getSimpleName();
    private static final int DELAY_ASYNC_MS = 40;
    private static final int DELAY_ASYNC_MS = 50;
    private static final int DELAY_DEFAULT_SCAN_TIMEOUT_MS = 1500000;
    private static final int DELAY_SCAN_TIMEOUT_MS = 100;
    private static final int DEFAULT_SCAN_REPORT_DELAY_MS = 100;
@@ -1364,8 +1364,8 @@ public class ScanManagerTest {
                            mScanDurationCaptor.capture());
            long capturedDuration = mScanDurationCaptor.getValue();
            Log.d(TAG, "capturedDuration: " + String.valueOf(capturedDuration));
            assertThat(weightedScanDuration <= capturedDuration
                    && capturedDuration <= weightedScanDuration + DELAY_ASYNC_MS).isTrue();
            assertThat(capturedDuration).isAtLeast(weightedScanDuration);
            assertThat(capturedDuration).isAtMost(weightedScanDuration + DELAY_ASYNC_MS);
            Mockito.clearInvocations(mMetricsLogger);
        }
    }