diff options
| author | 2023-02-16 22:01:20 -0800 | |
|---|---|---|
| committer | 2023-02-17 06:35:07 +0000 | |
| commit | 3528f2121655873b75142d698d63a77137ba7ff7 (patch) | |
| tree | 3b1ee45f9242e16ce973de1155bf481d636279f1 /libs/androidfw/ApkParsing.cpp | |
| parent | 788f62aed41fa098199eb90a43907befdbeb3ebd (diff) | |
Fixes failing CustomizationProviderTest.
The issue was the recent introduction of runBlocking { } calls in
ag/21396218. These block the logic on the current thread, causing unit
test runners to choke. Instead, we should use
runBlocking(CoroutineDispatcher) { } to make sure that the suspend
function yields back to the running test.
In addition to that change, we also needed to move the test onto an
UnconfinedTestDispatcher.
Fix: 269679515
Test: tests pass locally with atest
Change-Id: Iff661303af8791df7751fac7788681a105d47a75
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions