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

Commit 9109717b authored by Behnam Heydarshahi's avatar Behnam Heydarshahi
Browse files

Clean up volume test handler last

We used to flush the handler before processing messages. Now we first
process any lingering messages.

Bug: b/290612381
Test: atest com.android.systemui.volume --iterations 10
Change-Id: Ic25cb02c77f29fe00cbaa6d6d657f377d93c3bf0
parent 2d505f32
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -647,11 +647,11 @@ public class VolumeDialogImplTest extends SysuiTestCase {

    @After
    public void teardown() {
        cleanUp(mDialog);
        setOrientation(mOriginalOrientation);
        mTestableLooper.moveTimeForward(mLongestHideShowAnimationDuration);
        mTestableLooper.processAllMessages();
        reset(mPostureController);
        cleanUp(mDialog);
    }

    private void cleanUp(VolumeDialogImpl dialog) {