From e38bcb01ea4aa1825313625c6e6d93f22e59ab8f Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Wed, 26 May 2021 01:22:07 +0000 Subject: binderRpcTest: mitigate hang There is a hang in this test on device only for unix domain sockets caused by b/189272263. It seems sending dec refs (which we have many of now, since each oneway call corresponds to a ref increase), is filling up the socket. Reducing the stress to 50% until this bug can be fixed directly. Bug: N/A Test: binderRpcTest OnewayStressTest (several hundred times) Change-Id: I54808707069d8df028404eaeb3b87ec09d499152 --- libs/binder/tests/binderRpcTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/binder/tests/binderRpcTest.cpp b/libs/binder/tests/binderRpcTest.cpp index e10fe2fb09..1182ecc518 100644 --- a/libs/binder/tests/binderRpcTest.cpp +++ b/libs/binder/tests/binderRpcTest.cpp @@ -820,7 +820,7 @@ TEST_P(BinderRpc, ThreadingStressTest) { TEST_P(BinderRpc, OnewayStressTest) { constexpr size_t kNumClientThreads = 10; constexpr size_t kNumServerThreads = 10; - constexpr size_t kNumCalls = 100; + constexpr size_t kNumCalls = 50; auto proc = createRpcTestSocketServerProcess(kNumServerThreads); -- cgit v1.2.3-59-g8ed1b