mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Changed a test that adds a task that is due in one hour, then verifies that the task is 'due'. This fails when run between the times 2300 and 2400. Now the test makes the task due in 5 minutes, which narrows the window when the test can fail. This no longer coincides with the time the tinderbox runs.
This commit is contained in:
parent
27c30d1b65
commit
a95832ff3b
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ if (open my $fh, '>', 'color.rc')
|
|||
|
||||
# Test the add command.
|
||||
qx{../src/task rc:color.rc add due:12/31/2037 nothing};
|
||||
qx{../src/task rc:color.rc add due:1hr red};
|
||||
qx{../src/task rc:color.rc add due:5minutes red};
|
||||
my $output = qx{../src/task rc:color.rc list};
|
||||
|
||||
like ($output, qr/ (?!<\033\[\d\dm) \d{1,2}\/\d{1,2}\/\d{4} (?!>\033\[0m) .* nothing /x, 'none');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue