Commit 994ad10
fix flaky test (#8989)
This PR addresses flakiness(likely caused by network) with
`testLoadStyleHandlerIsInvokedExactlyOnce` test. Looking at the test I'm
not sure what scenario is being tested, as with adoption of runtime
styling callbacks `onStyleLoaded` event has nothing to do with style
loaded completion invocation.
I replaced the test with more fitting test for current setup. In the
test I issue two style load requests one after another - my expectation
is that the completion handler is invoked once per subscriber.
cc @mapbox/maps-ios
GitOrigin-RevId: 16f46a5e0ce4a58f1313526347bafd164a2421231 parent 34b2de6 commit 994ad10
File tree
2 files changed
+15
-13
lines changed- Tests/MapboxMapsTests
- Foundation
- Style/Fixtures
2 files changed
+15
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
373 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
374 | 378 | | |
| 379 | + | |
| 380 | + | |
375 | 381 | | |
376 | | - | |
| 382 | + | |
377 | 383 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
| 384 | + | |
| 385 | + | |
385 | 386 | | |
| 387 | + | |
386 | 388 | | |
387 | | - | |
| 389 | + | |
388 | 390 | | |
389 | 391 | | |
390 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
| 160 | + | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments