This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mir/agent: fix indefinite wait if fail to start prompt session
For some reason, Mir still provide an FD for a prompt session even if it fails to start. When this FD is passed to the prompt provider, it will just hang, causing the whole trust store user chain to just wait. To fix this, make sure the agent checks for the prompt session's state before continue. Interestingly, the only way to know the session's state is through the state callback. This cause a bit of a problem in the test as now we have to call the state callback in the mock. Thus, a custom ACTION is written and tests are changed to call it. Related: ubports/ubuntu-touch#1668
- Loading branch information
1 parent
ad94b8b
commit f6a7484
Showing
3 changed files
with
104 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters