From a95832ff3b69617335c2e4b452c3fa17848a22d3 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 4 Mar 2012 20:30:54 -0500 Subject: [PATCH] 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. --- test/color.duetoday.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/color.duetoday.t b/test/color.duetoday.t index 235834e48..5a699b0ae 100755 --- a/test/color.duetoday.t +++ b/test/color.duetoday.t @@ -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');