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

Commit 453334da authored by Devin Moore's avatar Devin Moore Committed by Gerrit Code Review
Browse files

Merge "binderRpcTest: assert on wait_for timeout"

parents 3d16fc0b 47a12010
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1095,10 +1095,7 @@ TEST_P(BinderRpc, SingleDeathRecipient) {
    }

    std::unique_lock<std::mutex> lock(dr->mMtx);
    if (!dr->dead) {
        EXPECT_EQ(std::cv_status::no_timeout, dr->mCv.wait_for(lock, 1000ms));
    }
    EXPECT_TRUE(dr->dead) << "Failed to receive the death notification.";
    ASSERT_TRUE(dr->mCv.wait_for(lock, 1000ms, [&]() { return dr->dead; }));

    // need to wait for the session to shutdown so we don't "Leak session"
    EXPECT_TRUE(proc.proc.sessions.at(0).session->shutdownAndWait(true));