Skip to content

Commit 2446f1d

Browse files
author
Steven Moreland
committed
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
1 parent 38a4ab9 commit 2446f1d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libs/binder/tests/binderRpcUniversalTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,9 @@ TEST_P(BinderRpc, Callbacks) {
498498
// same thread, everything should have happened in a nested call. Otherwise,
499499
// the callback will be processed on another thread.
500500
if (callIsOneway || callbackIsOneway || delayed) {
501-
using std::literals::chrono_literals::operator""s;
501+
using std::literals::chrono_literals::operator""ms;
502502
RpcMutexUniqueLock _l(cb->mMutex);
503-
cb->mCv.wait_for(_l, 1s, [&] { return !cb->mValues.empty(); });
503+
cb->mCv.wait_for(_l, 1500ms, [&] { return !cb->mValues.empty(); });
504504
}
505505

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

0 commit comments

Comments
 (0)