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

Commit 12a57e3f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "binder RPC: quick callbacks flake" into main

parents cbd17640 2446f1d6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -498,9 +498,9 @@ TEST_P(BinderRpc, Callbacks) {
                // same thread, everything should have happened in a nested call. Otherwise,
                // the callback will be processed on another thread.
                if (callIsOneway || callbackIsOneway || delayed) {
                    using std::literals::chrono_literals::operator""s;
                    using std::literals::chrono_literals::operator""ms;
                    RpcMutexUniqueLock _l(cb->mMutex);
                    cb->mCv.wait_for(_l, 1s, [&] { return !cb->mValues.empty(); });
                    cb->mCv.wait_for(_l, 1500ms, [&] { return !cb->mValues.empty(); });
                }

                EXPECT_EQ(cb->mValues.size(), 1UL)