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

Prevent further tests cases from running in case of timeout #465

Merged
merged 5 commits into from
Jan 21, 2022

Conversation

akshitdewan
Copy link
Contributor

Earlier, in #459 we made it so that by adding a '# .Case' to each doctest you could make it so that all the doctests are run instead of the default behavior of stopping at the first failed doctest. In the case of infinite loops in student code, this can cause problems because each individual doctest needs to time out leading to a long overall wait time. This PR checks for the first timeout and quits early.

@pamelafox pamelafox requested a review from itsvs January 21, 2022 07:17
@pamelafox
Copy link
Contributor

Also requesting review from Vanshaj.

@pamelafox pamelafox merged commit 7eb0781 into okpy:master Jan 21, 2022
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.

None yet

3 participants