Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21683a93 authored by Alex Buynytskyy's avatar Alex Buynytskyy
Browse files

More robust tests.

https://android-build.corp.google.com/test_investigate/?invocationId=I89000010151050377&testResultId=TR75528603005220067

Bug: 275409981
Fixes: 279547610
Test: atest PackageManagerTests

Merged-In: Id68a28e9dc12f71286e29822d4b88be88ab03653
Change-Id: I49d88dbba79f7bcd8cfb8c72d2605671f27935b2
parent 38080c8d
Loading
Loading
Loading
Loading
+5 −4
Original line number Original line Diff line number Diff line
@@ -197,10 +197,11 @@ public class PackageManagerTests extends AndroidTestCase {
        }
        }


        public Intent getResult() {
        public Intent getResult() {
            while (true) {
                try {
                try {
                    return mResult.take();
                    return mResult.take();
                } catch (InterruptedException e) {
                } catch (InterruptedException e) {
                throw new RuntimeException(e);
                }
            }
            }
        }
        }
    }
    }