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

Commit 6de95601 authored by Hyundo Moon's avatar Hyundo Moon Committed by Gerrit Code Review
Browse files

Merge "BluetoothPbapActivityTest: Ignore exception from ActivityScenario.close" into main

parents 8e6e1da6 c34c81ac
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -84,7 +84,12 @@ public class BluetoothPbapActivityTest {
        if (mActivityScenario != null) {
            // Workaround for b/159805732. Without this, test hangs for 45 seconds.
            Thread.sleep(1_000);
            try {
                mActivityScenario.close();
            } catch (Exception e) {
                // Ignore exception: Sometimes the state does not reach "DESTROYED",
                // however this should not affect our test.
            }
        }
        enableActivity(false);
        BluetoothMethodProxy.setInstanceForTesting(null);