Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #123674: Test that sub-supplies from categorize get .done
  • Loading branch information
moritz committed Jan 26, 2015
1 parent 8c487c0 commit 0821592
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S17-supply/categorize.t
Expand Up @@ -59,7 +59,11 @@ for ThreadPoolScheduler.new, CurrentThreadScheduler -> $*SCHEDULER {
$s.emit($_) for 1,2,3,11,12,13;
is_deeply @keys, [0,1], "did we get the right keys ($what)";
tap_ok @supplies[0], [11,12,13], "got the 0 supply ($what)", :live;
tap_ok @supplies[1], [11,12,13], "got the 1 supply ($what)", :live;

my $done = False;
@supplies[1].tap({;}, done => sub { $done = True });
$s.done;
ok $done, 'Sub-supply got .done (RT 123674)';
}
}
}

0 comments on commit 0821592

Please sign in to comment.