Remove process_timeouts() method in favor of timeout(<Timeout>) and a helper for tests
This commit is contained in:
parent
65c35bfa69
commit
d007dfe3ff
4 changed files with 21 additions and 15 deletions
|
|
@ -82,3 +82,10 @@ def setup_workflow():
|
|||
wfe = conn.start_workflow_execution("test-domain", "uid-abcd1234", "test-workflow", "v1.0")
|
||||
conn.run_id = wfe["runId"]
|
||||
return conn
|
||||
|
||||
|
||||
# A helper for processing the first timeout on a given object
|
||||
def process_first_timeout(obj):
|
||||
_timeout = obj.first_timeout()
|
||||
if _timeout:
|
||||
obj.timeout(_timeout)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue