Closed
Bug 2010540
Opened 10 days ago
Closed 10 days ago
Refactor DownloadSnackbarTest to remove MainCoroutineRule
Categories
(Firefox for Android :: Tooling, task)
Tracking
()
RESOLVED
FIXED
149 Branch
| Tracking | Status | |
|---|---|---|
| firefox149 | --- | fixed |
People
(Reporter: mcarare, Assigned: mcarare)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid][group6] )
Attachments
(1 file)
.
Updated•10 days ago
|
| Assignee | ||
Comment 1•10 days ago
|
||
This change updates DownloadSnackbar to accept a CoroutineDispatcher (defaulting to Dispatchers.Main), ensuring that the internal coroutine scope uses the provided dispatcher. DownloadSnackbarTest is updated to use StandardTestDispatcher and runTest instead of MainCoroutineRule to properly synchronize asynchronous state changes during tests.
Pushed by mcarare@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/6ca114e5b1f7
https://hg.mozilla.org/integration/autoland/rev/0ad611368da1
Allow passing a CoroutineDispatcher to DownloadSnackbar. r=android-reviewers,avirvara
Status: ASSIGNED → RESOLVED
Closed: 10 days ago
status-firefox149:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•