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

Add timeout to clash run #16

Closed
Tracked by #28
Andriamanitra opened this issue Oct 26, 2023 · 0 comments · Fixed by #34
Closed
Tracked by #28

Add timeout to clash run #16

Andriamanitra opened this issue Oct 26, 2023 · 0 comments · Fixed by #34
Assignees
Labels
feature Feature request
Milestone

Comments

@Andriamanitra
Copy link
Owner

Andriamanitra commented Oct 26, 2023

If the solution takes more than 5 seconds for a test case it should be timed out. The timeout should (eventually) be configurable with --timeout option.

While messing with time consider also adding measurement of how long the solutions take in general and print it as "X/Y tests passed (took Z seconds)" to give some rudimentary idea of solution performance.

This crate might be useful: https://docs.rs/wait-timeout/latest/wait_timeout/

@Andriamanitra Andriamanitra added the feature Feature request label Oct 27, 2023
@ellnix ellnix mentioned this issue Nov 1, 2023
11 tasks
@Andriamanitra Andriamanitra added this to the v1.0.0 milestone Nov 1, 2023
@Andriamanitra Andriamanitra self-assigned this Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant