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

Commit 0b82bd90 authored by wilsonshih's avatar wilsonshih
Browse files

Fixes test process crash caused by unsynchronized I/O handling.

Flush all remaining items in the persist queue before cleaning up the
test directory.

Flag: EXEMPT bugfix
Bug: 420172484
Test: atest ActivitySnapshotControllerTests TaskSnapshotCacheTest
TaskSnapshotLowResDisabledTest TaskSnapshotPersisterLoaderTest

Change-Id: I38fce6e0effcacb0b595a589cf9573cae58a4586
parent b18f46dc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -122,6 +122,8 @@ class TaskSnapshotPersisterTestBase extends WindowTestsBase {

    @After
    public void tearDown() {
        mSnapshotPersistQueue.setPaused(false);
        mSnapshotPersistQueue.waitForQueueEmpty();
        cleanDirectory();
    }