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

Commit 2446f1d6 authored by Steven Moreland's avatar Steven Moreland
Browse files

binder RPC: quick callbacks flake

0.02% flaky at up to 1s, so switching to
1500ms. Cloud must be under stress.

Fixes: 389069410
Test: N/A
Change-Id: I8c614d7dcdca004bc439b0b558fff59bf87bd528
parent 38a4ab9f
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)