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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user