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

Commit 55ebbf57 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix SurfaceSyncGroupTests" into udc-dev am: cf60d539 am: 277dc55d

parents e0406ec2 277dc55d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import androidx.test.filters.SmallTest;

import com.android.server.testutils.StubTransaction;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

@@ -52,6 +53,11 @@ public class SurfaceSyncGroupTest {
        SurfaceSyncGroup.setTransactionFactory(StubTransaction::new);
    }

    @After
    public void tearDown() {
        SurfaceSyncGroup.setTransactionFactory(SurfaceControl.Transaction::new);
    }

    @Test
    public void testSyncOne() throws InterruptedException {
        final CountDownLatch finishedLatch = new CountDownLatch(1);