Skip to content

Commit

Permalink
Hopefully make test less load sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Oct 22, 2015
1 parent 4e63f72 commit 22d8cbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S17-supply/throttle.t
Expand Up @@ -25,7 +25,7 @@ for ThreadPoolScheduler.new -> $*SCHEDULER {
sleep 6;
is @seen, (1..10), 'did we see all of the element';
ok $min > .5, 'difference between each at least .5 seconds';
ok $max < .6, 'difference between each at most .6 seconds';
ok $max < .8, 'difference between each at most .8 seconds';
}

{
Expand All @@ -42,10 +42,10 @@ for ThreadPoolScheduler.new -> $*SCHEDULER {
$before = now;
};
sleep 1;
$control.emit( (limit => 2) );
$control.emit( "limit:2" );
sleep 3;
is @seen, (1..10), 'did we see all of the element';
ok $min > 0, 'difference between each at least something';
ok $max < .3, 'difference between each at most .3 seconds';
ok $max < .5, 'difference between each at most .5 seconds';
}
}

0 comments on commit 22d8cbe

Please sign in to comment.