Skip to content

Commit

Permalink
fixed a few typos in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 6, 2013
1 parent 4b8a860 commit 8f76007
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/mojo/delay.t
Expand Up @@ -165,7 +165,7 @@ is_deeply $result, [1, 2, 3, 2, 3, 2, 1, 4, 5, 6, 23], 'right results';

# Exception in first step
my $failed;
($finished, $result) = undef;
($finished, $result) = ();
$delay = Mojo::IOLoop::Delay->new;
$delay->on(error => sub { $failed = pop });
$delay->on(finish => sub { $finished++ });
Expand All @@ -177,7 +177,7 @@ ok !$finished, 'finish event has not been emitted';
ok !$result, 'no result';

# Exception in second step
($failed, $finished, $result) = undef;
($failed, $finished, $result) = ();
$delay = Mojo::IOLoop::Delay->new;
$delay->on(error => sub { $failed = pop });
$delay->on(finish => sub { $finished++ });
Expand All @@ -193,7 +193,7 @@ ok !$finished, 'finish event has not been emitted';
ok !$result, 'no result';

# Exception in second step (with active event)
($failed, $finished, $result) = undef;
($failed, $finished, $result) = ();
$delay = Mojo::IOLoop::Delay->new;
$delay->on(error => sub { $failed = pop });
$delay->on(finish => sub { $finished++ });
Expand Down

0 comments on commit 8f76007

Please sign in to comment.