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

Commit 3fa815df authored by Frederick Mayle's avatar Frederick Mayle
Browse files

libbinder: Fix binderRpcTest flake

Sometimes it gets lucky and takes exactly as long as the sum of the
sleeps (in millisecond resolution).

Test: atest binderRpcTest
Change-Id: I409ea2bc20ece87da762bc0623c91c52b6709b9e
parent f2532967
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -930,7 +930,7 @@ TEST_P(BinderRpcThreads, OnewayCallQueueing) {

    size_t epochMsAfter = epochMillis();

    EXPECT_GT(epochMsAfter, epochMsBefore + kSleepMs * kNumSleeps);
    EXPECT_GE(epochMsAfter, epochMsBefore + kSleepMs * kNumSleeps);

    saturateThreadPool(1 + kNumExtraServerThreads, proc.rootIface);
}