Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ocp_resources/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class TimeoutSampler:
"""
Samples the function output.

This is a generator object that at first yields the output of function
`func`. After the yield, it either raises instance of `TimeoutExpiredError` or
This is a generator object that at first yields the output of callable.
After the yield, it either raises instance of `TimeoutExpiredError` or
sleeps `sleep` seconds.

Yielding the output allows you to handle every value as you wish.
Expand Down Expand Up @@ -61,7 +61,7 @@ class BExampleError(AExampleError)
Args:
wait_timeout (int): Time in seconds to wait for func to return a value equating to True
sleep (int): Time in seconds between calls to func
func (function): to be wrapped by TimeoutSampler
func (Callable): to be wrapped by TimeoutSampler
exceptions_dict (dict): Exception handling definition
print_log (bool): Print elapsed time to log
"""
Expand Down