Fix race condition in UnlockManagedGuestSession test
The |ResultCatcher| and |ExtensionTestMessageListener| are possibly not ready before the login screen extension is re-enabled when the screen locks. This results in a race condition. This CL fixes the race by using 2 separate listeners which are initialised before the call to the lock. Bug: 1044280 Change-Id: I221f3f70e4eef02df3f13bd5c9c8cda24f132a2d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2012952Reviewed-by:Alexander Hendrich <hendrich@chromium.org> Commit-Queue: Jit Yao Yap <jityao@google.com> Cr-Commit-Position: refs/heads/master@{#733989}
Showing
Please register or sign in to comment