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:
Paul Beckingham 2014-06-01 11:39:03 -04:00
parent 92ba0055fb
commit c01d15d3b8
2 changed files with 21 additions and 11 deletions

View file

@ -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};