Skip to content

Commit 6b04927

Browse files
lizmatcoke
authored andcommitted
Don't run more tests that can hang for some
1 parent d016d27 commit 6b04927

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

S17-supply/throttle.t

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use lib 't/spec/packages';
33

44
use Test;
55

6-
plan 37;
6+
plan 17;
77

88
dies-ok { Supply.throttle(1,1) }, 'can not be called as a class method';
99

@@ -55,13 +55,13 @@ diag "**** scheduling with {$*SCHEDULER.WHAT.perl}";
5555
# is @a.sum, 10, "ok with $n at a time";
5656
#}
5757

58-
for 1..10 -> $n {
59-
my @a[10]; # pre-size array to allow seamless multi-thread updates
60-
my $before = now;
61-
(^10).Supply.throttle( $n, { sleep rand; @a[$_] = 1 } ).wait;
62-
ok now < $before + ((12 - $n) * .6), "parallelism as expected with $n";
63-
is @a.sum, 10, "ok with $n at a time with random delay";
64-
}
58+
#for 1..10 -> $n {
59+
# my @a[10]; # pre-size array to allow seamless multi-thread updates
60+
# my $before = now;
61+
# (^10).Supply.throttle( $n, { sleep rand; @a[$_] = 1 } ).wait;
62+
# ok now < $before + ((12 - $n) * .6), "parallelism as expected with $n";
63+
# is @a.sum, 10, "ok with $n at a time with random delay";
64+
#}
6565

6666
{
6767
my $status = Supplier.new;

0 commit comments

Comments
 (0)