mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
Unit Tests
- Replaced 'sleep' commands in the unit test (which slow things down too much) with pending.data lines with modified timestamps.
This commit is contained in:
parent
92ba0055fb
commit
c01d15d3b8
2 changed files with 21 additions and 11 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 4;
|
||||
use Test::More tests => 3;
|
||||
|
||||
# Ensure environment has no influence.
|
||||
delete $ENV{'TASKDATA'};
|
||||
|
@ -71,7 +71,6 @@ if (open my $fh, '>', 'pending.data')
|
|||
[uuid:"99999999-9999-9999-9999-999999999999 " status:"completed" description:"C2" entry:"$fourteen" end:"$fourteen"]
|
||||
EOF
|
||||
close $fh;
|
||||
ok (-r 'pending.data', 'Created pending.data');
|
||||
}
|
||||
|
||||
my $output = qx{../src/task rc:time.rc timesheet 2>&1};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue