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

Use timeout duration again #6575

Closed
wants to merge 1 commit into from
Closed

Conversation

hithwen
Copy link
Contributor

@hithwen hithwen commented May 5, 2020

Timeout usage was removed in #3987

@@ -182,6 +185,8 @@ def _query_sample_loop(self):
raise

while True:
if time.time() > time_started + self._timeout_duration:
raise TimeoutException()
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a unit test for timeout case ?

Copy link
Contributor

@derekwbrown derekwbrown left a comment

Choose a reason for hiding this comment

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

you need to test this code.

@hithwen
Copy link
Contributor Author

hithwen commented May 7, 2020

Sorted in #6576

@hithwen hithwen closed this May 7, 2020
@ofek ofek deleted the julia/reintroduce-timeout-in-wmi branch May 7, 2020 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants