Commit 5118dc52 authored by Ricki Hirner's avatar Ricki Hirner 🐑

Increase attempts for Android JUnit bug workaround

parent 9efc639c
Pipeline #4692059 failed with stage
in 4 minutes and 56 seconds
......@@ -128,10 +128,12 @@ public class CustomCertManagerTest {
private IBinder bindService(Class clazz) throws TimeoutException, InterruptedException {
IBinder binder = null;
int it = 0;
while ((binder = serviceTestRule.bindService(new Intent(getTargetContext(), clazz))) == null && it++ <10) {
while ((binder = serviceTestRule.bindService(new Intent(getTargetContext(), clazz))) == null && it++ <100) {
System.err.println("Waiting for ServiceTestRule.bindService");
Thread.sleep(50);
}
if (binder == null)
throw new IllegalStateException("Couldn't bind to service");
return binder;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment