Skip to content

Commit

Permalink
[SKIP FUDGE] done() on first iteration of Supply.interval must not hang
Browse files Browse the repository at this point in the history
RT#128469
  • Loading branch information
zoffixznet committed Jul 14, 2016
1 parent 430bd20 commit a047d78
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion S17-supply/interval.t
Expand Up @@ -5,7 +5,7 @@ use Test;
use Test::Tap;
use Test::Util;

plan 4;
plan 7;

dies-ok { Supplier.new.Supply.interval(1) }, 'can not be called as an instance method';

Expand Down Expand Up @@ -34,4 +34,16 @@ is_run(
'Exception thrown in a timer and unhandled terminates program',
);

# RT #128469
{
my $code = 'react { whenever Supply.interval: .01 { done } };'
~ ' say "Did not hang"';

for ^3 {
#?rakudo skip 'RT 128595'
doesn't-hang \($*EXECUTABLE, '-e', $code), :out(/'Did not hang'/),
'done() on first iteration of Supply.interval does not hang';
}
}

# vim: ft=perl6 expandtab sw=4

0 comments on commit a047d78

Please sign in to comment.