Permalink
Browse files

[sleep.t]: C<time> does not allow parens after it.

  • Loading branch information...
1 parent 91aafc5 commit e2e65b2720f1a9319692051130c75b2a0662ed98 @pmichaud pmichaud committed Sep 16, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 S29-context/sleep.t
View
@@ -6,10 +6,10 @@ use Test;
plan 4;
-my $start = time();
+my $start = time;
diag "Sleeping for 3s";
my $sleep_says = sleep 3;
-my $diff = time() - $start;
+my $diff = time - $start;
ok( $sleep_says >= 2 , 'Sleep says it slept at least 2 seconds');
ok( $sleep_says <= 10 , '... and no more than 10');

0 comments on commit e2e65b2

Please sign in to comment.