Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🪲 Increase timeout for if_pressed programs #5678 #5680

Merged
merged 4 commits into from
Jul 31, 2024

Conversation

boryanagoncharenko
Copy link
Collaborator

Fixes #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.

Copy link
Member

@jpelay jpelay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works!

Copy link
Contributor

mergify bot commented Jul 31, 2024

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).

Copy link
Contributor

mergify bot commented Jul 31, 2024

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit e6d3cee into main Jul 31, 2024
12 checks passed
@mergify mergify bot deleted the if_pressed_error_5678 branch July 31, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🪲 If pressed randomly fails
2 participants