summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Alejandro Nijamkin <nijamkin@google.com> 2023-07-26 16:14:53 -0700
committer Ale Nijamkin <nijamkin@google.com> 2023-07-27 16:44:38 +0000
commit4dd64f3676a5996d073c34e305c1cc54f9edb792 (patch)
treec984b916c257408ac20088b7adc31f4eb184cfc3 /libs/androidfw/FileStream.cpp
parent6ba2bfd45ee5957d35634a4317074add3a7d6bd2 (diff)
Fixes failing test after coroutine lib upgrade.
The changed test case started failing after the coroutines library has been upgraded; not sure why. This fixes it by adding an additional runCurrent() right after collectLastValue is called. This gives an opportunity for the upstream conflatedCallbackFlow to do its work and register its callback. When the value is queried in the assertion line, collectLastValue runs its own runCurrent() to trigger any pending coroutines, updating the value that the test sees. Bug: 292807808 Test: N/A Change-Id: If42e96e9ae29ae6e0585f6c2b567cca7b15d581e Merged-In: If42e96e9ae29ae6e0585f6c2b567cca7b15d581e (cherry picked from commit 2964de1d655fb33d359209329b82cbe899f31cad)
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions