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

Commit 8d0c75fa authored by Garfield Tan's avatar Garfield Tan
Browse files

Wait for the correct event in PersisterQueueTests

Particularly in #testProcessOneItem_Flush.

Bug: 346495798
Test: atest PersisterQueueTests
Change-Id: I28585b556bd83e17095129eabd78e0cd1455be70
parent 7880ea2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ public class PersisterQueueTests {
                processDuration < PRE_TASK_DELAY_MS);

        assertTrue("Target didn't call callback enough times.",
                mFactory.waitForAllExpectedItemsProcessed(TIMEOUT_ALLOWANCE));
                mListener.waitForAllExpectedCallbackDone(TIMEOUT_ALLOWANCE));
        // Once before processing this item, once after that.
        assertEquals(2, mListener.mProbablyDoneResults.size());
        // The last one must be called with probably done being true.