From 1c0581ef81c7150e03c298807e291c5083443f6e Mon Sep 17 00:00:00 2001 From: Elie Kheirallah Date: Wed, 1 Mar 2023 23:50:46 +0000 Subject: ThreadPoolAvailableThreads fix. ThreadPoolAvailableThreads would fail occasionally due to slow threads. Sometimes a thread might not arrive on time by the time of asserting. Increased the wait time to 500ms to allow for threads to all arrive and prevent a flake. Bug: 270513342 Test: atest BinderLibTest#ThreadPoolAvailableThreads --iterations 1000 Change-Id: I5924a939304802ce618f52c993cb995c735ba21a --- libs/binder/tests/binderLibTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/binder/tests/binderLibTest.cpp b/libs/binder/tests/binderLibTest.cpp index 955c650205..ce15121890 100644 --- a/libs/binder/tests/binderLibTest.cpp +++ b/libs/binder/tests/binderLibTest.cpp @@ -1370,7 +1370,7 @@ TEST_F(BinderLibTest, ThreadPoolAvailableThreads) { })); } - data.writeInt32(100); + data.writeInt32(500); // Give a chance for all threads to be used EXPECT_THAT(server->transact(BINDER_LIB_TEST_UNLOCK_AFTER_MS, data, &reply), NO_ERROR); -- cgit v1.2.3-59-g8ed1b