Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit e2e65b2720f1a9319692051130c75b2a0662ed98 1 parent 91aafc5
@pmichaud pmichaud authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 S29-context/sleep.t
View
4 S29-context/sleep.t
@@ -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');
Please sign in to comment.
Something went wrong with that request. Please try again.