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

Skip to content
Commit ec1b1bb7 authored by Sergey Nikolaienkov's avatar Sergey Nikolaienkov
Browse files

Fix data race in RecentsLoaderTests

Fix data race in RecentsLoaderTests#testContentsUpdate_observable() that would occur when accessing `private boolean mContentChanged` variable from the Main (a.k.a. UI) thread and the thread the test runs on.
Instead of relying on a class member mContentChanged use the existing thread-safe CountDownLatch object.

Bug: 288342044
Test: atest --rerun-until-failure 10000 \
      DocumentsUIUnitTests:com.android.documentsui.RecentsLoaderTests
Change-Id: I336ecddf4c894d1ba383a4246e7eb4a58ac200e2
Merged-In: I336ecddf4c894d1ba383a4246e7eb4a58ac200e2
(cherry picked from commit f243c48d)
parent a2c5763f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment