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

Commit 3437c571 authored by TYM Tsai's avatar TYM Tsai
Browse files

Fix CtsAtomicInstallTestCases flaky

There is a timing issue when the session re-opens again after the
session is abandoned. Sometimes test cases will reopen the session
immediately when received callback, but at the time, the session does
not be removed from mSession. That's because the session is really
removed in a runnable that posts after notified callbacks.
To fix the issue, notify callbacks after the session is actually
removed from the mSession. This change doesn't apply to success cases
to avoid adding an unknown delay if somewhere wants to handle install
success.

Bug: 288319099
Test: atest CtsAtomicInstallTestCases --iterations 400
Change-Id: Iec7387eeac2beb19cda788363b6d31fa2399abdb
parent 25cd8799
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment