Skip to content
Commit 8cf0f00a authored by Jun Ono's avatar Jun Ono Committed by Shunta Sato
Browse files

Fix unstable unittest due to RejectedExcecutionException

Symptom:
Sometimes RejectedExecutionException is thrown
when FileCopyUiTest and FileDeleteUiTest happens.

Root cause:
When too many files are created by
DocumentsProviderHelper#createDocument() method,
too many root refreshes are queued in an executor.
Then, it causes to throw RejectedExcecutionException.

Solution:
Set a flag to prevent many refreshes.

Bug: 72202303
Test: Unittest of com.android.documentsui.tests
Change-Id: Ia92e37f8e8c31d810f81fee761441c88e8635f13
parent b2bd56d6
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