Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🪲 Increase timeout for if_pressed programs hedyorg#5678 (hedyorg#5680)
Fixes hedyorg#5678 Increased the timeout of if_pressed programs from 10 seconds to 10 minutes. The random failures turned out to be timeouts. While cleaning up the pygame code, I think we accidentally reduced the timeout for if_pressed programs. This surfaced as random failures especially when there are multiple if_pressed executions, e.g. in a `repeat` command. **How to test** Go to level 7 and run the following program: ``` repeat 3 times if x is pressed print 'x' else print 'another' ``` Wait for 10 seconds and then press a button. The program should not stop and there should be no errors reports in the network tab of the browser.
- Loading branch information