Commit 116e934
committed
Explorer: Stop the favorites repo test flaking on cache propagation
isFavorite() reads the hot favoritePaths StateFlow, which is populated
asynchronously from the DataStore flow. Three assertions ran immediately
after a mutation without awaiting the cache emission, so on a slow CI
runner isFavorite() could still observe the previous list. Await the
propagation via favoritePaths.first { ... } before asserting, matching
the pattern the other tests in this file already use.1 parent 8143c1e commit 116e934
1 file changed
Lines changed: 3 additions & 0 deletions
File tree
- app-workspace-explorer/src/test/java/eu/darken/butler/explorer/core/favorites
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| |||
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| 183 | + | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| |||
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
| 199 | + | |
197 | 200 | | |
198 | 201 | | |
199 | 202 | | |
| |||
0 commit comments