mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Tests: Increase timeout to 5 seconds
This commit is contained in:
parent
c34b2b8cfb
commit
7fcb26f363
1 changed files with 2 additions and 2 deletions
|
@ -147,7 +147,7 @@ class Task(object):
|
||||||
return f.readlines()
|
return f.readlines()
|
||||||
|
|
||||||
def runSuccess(self, args=(), input=None, merge_streams=False,
|
def runSuccess(self, args=(), input=None, merge_streams=False,
|
||||||
timeout=1):
|
timeout=5):
|
||||||
"""Invoke task with given arguments and fail if exit code != 0
|
"""Invoke task with given arguments and fail if exit code != 0
|
||||||
|
|
||||||
Use runError if you want exit_code to be tested automatically and
|
Use runError if you want exit_code to be tested automatically and
|
||||||
|
@ -179,7 +179,7 @@ class Task(object):
|
||||||
|
|
||||||
return output
|
return output
|
||||||
|
|
||||||
def runError(self, args=(), input=None, merge_streams=False, timeout=1):
|
def runError(self, args=(), input=None, merge_streams=False, timeout=5):
|
||||||
"""Invoke task with given arguments and fail if exit code == 0
|
"""Invoke task with given arguments and fail if exit code == 0
|
||||||
|
|
||||||
Use runSuccess if you want exit_code to be tested automatically and
|
Use runSuccess if you want exit_code to be tested automatically and
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue