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

Commit d88b9671 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "composer: deflake Test_expectedPresentTime"

parents 4f1aaa91 df084f35
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1426,8 +1426,7 @@ class GraphicsComposerAidlCommandTest : public GraphicsComposerAidlTest {
        presentFence2->waitForever(LOG_TAG);

        const auto actualPresentTime = presentFence2->getSignalTime();
        const auto presentError = std::abs(expectedPresentTime - actualPresentTime);
        EXPECT_LE(presentError, vsyncPeriod / 2);
        EXPECT_GE(actualPresentTime, expectedPresentTime - vsyncPeriod / 2);

        ASSERT_TRUE(mComposerClient->setPowerMode(mPrimaryDisplay, PowerMode::OFF).isOk());
    }