Commit 4706c04
authored
chore: Sleep 1s before capturing max-res to prevent 24MP flakiness (#3982)
Apparently the 48MP+ max resolution capture path is a bit flakey on iOS, as AVFoundation internally prepares it asynchronously - no idea why, but it downgrades to 24MP and so the test fails.
However if we call prepareSettings and/or 1s sleep, the it successfully captures 48MP and the test goes green. No idea why or how to fix it, as AVFoundation also documents this as kind of best effort and can silently downgrade...1 parent bc5e871 commit 4706c04
1 file changed
Lines changed: 10 additions & 4 deletions
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
362 | 365 | | |
363 | 366 | | |
364 | 367 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
369 | 374 | | |
370 | 375 | | |
371 | 376 | | |
| 377 | + | |
372 | 378 | | |
373 | 379 | | |
374 | 380 | | |
| |||
0 commit comments