Commit 3284b7b
committed
test(firmware): Fix StackOverflowError in OTA handler test delay override
The TestEsp32OtaUpdateEnvironment.delayBlock lambda called delay(it)
unqualified, which resolved to the class's own override instead of
kotlinx.coroutines.delay. Each call re-entered delayBlock, producing
infinite recursion and a StackOverflowError in CoroutineDebugging.
Fully qualify the call as kotlinx.coroutines.delay(it) so it resolves
to the imported top-level function, not the member override.1 parent 4131918 commit 3284b7b
1 file changed
Lines changed: 3 additions & 1 deletion
File tree
- feature/firmware/src/commonTest/kotlin/org/meshtastic/feature/firmware/ota
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
487 | 489 | | |
488 | 490 | | |
489 | 491 | | |
| |||
0 commit comments