mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 04:13:07 +02:00
Test: Modified timeout values
- Removed timeout for bulk.t, context.t - Increased timeout for delete.t
This commit is contained in:
parent
499b2256fc
commit
fdcc7b3d0f
3 changed files with 3 additions and 3 deletions
|
@ -90,7 +90,7 @@ class TestBulk(TestCase):
|
|||
# Test with 3 tasks. 3 is considered bulk. rc.confirmation has no effect on bulk
|
||||
|
||||
# Delete task 1 'one'? (yes/no/all/quit) --> timeout
|
||||
code, out, err = self.t.runError("1-3 delete rc.confirmation:off", timeout=0.2)
|
||||
code, out, err = self.t.runError("1-3 delete rc.confirmation:off")
|
||||
self.assertNotIn("(yes/no)", out)
|
||||
self.assertIn("(yes/no/all/quit)", out)
|
||||
self.assertNotIn("Deleting task", out)
|
||||
|
|
|
@ -47,7 +47,7 @@ class ContextManagementTest(TestCase):
|
|||
"""With confirmation active, prompt if context filter matches no tasks"""
|
||||
self.t.config("confirmation", "on")
|
||||
|
||||
code, out, err = self.t.runError('context define work project:Work', timeout=0.2)
|
||||
code, out, err = self.t.runError('context define work project:Work')
|
||||
self.assertIn("The filter 'project:Work' matches 0 pending tasks.", out)
|
||||
self.assertNotIn("Context 'work' defined.", out)
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ class TestDelete(TestCase):
|
|||
def _validate_prompt_loop(self, input=""):
|
||||
"""Helper method to check if task flooded stream on closed STDIN"""
|
||||
try:
|
||||
code, out, err = self.t("/foo[1-3]/ delete", input=input, timeout=0.2)
|
||||
code, out, err = self.t("/foo[1-3]/ delete", input=input, timeout=0.3)
|
||||
except CommandError as e:
|
||||
# If delete fails with a timeout, don't fail the test immediately
|
||||
code, out, err = e.code, e.out, e.err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue