Skip to content

Commit 3e86536

Browse files
committed
Increase RemoveFromCacheOnServerDeath retry count
Increasing the retry count as the sched delay can be upto 1 sec. Test: atest binderCacheUnitTest Bug: 333854840 Change-Id: Iace66b43d73a72ca688fe734196d129c0bba4790
1 parent d73a510 commit 3e86536

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/binder/tests/binderCacheUnitTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ TEST_F(LibbinderCacheTest, RemoveFromCacheOnServerDeath) {
149149
EXPECT_EQ(OK, mServiceManager->addService(kCachedServiceName, binder2));
150150

151151
// Confirm that new service is returned instead of old.
152-
int retry_count = 5;
152+
int retry_count = 20;
153153
sp<IBinder> result2;
154154
do {
155155
std::this_thread::sleep_for(std::chrono::milliseconds(50));

0 commit comments

Comments
 (0)