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

Commit 1f96aeb3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix flaky test, BatteryStatsHistoryTest.startNextFragment" into main

parents e7f3a29f 22a9ab7a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -456,6 +456,8 @@ public class BatteryStatsHistoryTest {
    }

    private void fillActiveFile(BatteryStatsHistory history) {
        awaitCompletion();      // Wait for BatteryHistoryDirectory.trim if necessary.

        // Create roughly 1K of history
        int initialSize = history.getHistoryUsedSize();
        while (history.getHistoryUsedSize() < initialSize + 1000) {