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

Commit 9b63d148 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "binderRpcTest: ThreadPoolGreaterThanEqualRequested" am: 9e622396 am:...

Merge "binderRpcTest: ThreadPoolGreaterThanEqualRequested" am: 9e622396 am: 38052352 am: 5d437ec2

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2368688



Change-Id: I7097ae265d65ced73e6c7e53ae4f103f21e81943
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e893d3d9 5d437ec2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -372,12 +372,12 @@ TEST_P(BinderRpc, ThreadPoolGreaterThanEqualRequested) {
        ts.push_back(std::thread([&] { proc.rootIface->lockUnlock(); }));
    }

    usleep(10000); // give chance for calls on other threads
    usleep(100000); // give chance for calls on other threads

    // other calls still work
    EXPECT_EQ(OK, proc.rootBinder->pingBinder());

    constexpr size_t blockTimeMs = 50;
    constexpr size_t blockTimeMs = 100;
    size_t epochMsBefore = epochMillis();
    // after this, we should never see a response within this time
    EXPECT_OK(proc.rootIface->unlockInMsAsync(blockTimeMs));