Changeset 354

Show
Ignore:
Timestamp:
11/16/07 11:50:36 (1 year ago)
Author:
hachi
Message:

Off by one is OK in this case, because we don't know how fast the gearmand is at dispatching the jobs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/api/perl/Gearman/t/30-maxqueue.t

    r207 r354  
    5555$tasks->wait; 
    5656 
    57 is($completed, 2, 'number of success'); # One starts immediately and on the queue 
    58 is($failed, 3, 'number of failure'); # All the rest 
     57ok($completed == 2 || $completed == 1, 'number of success'); # One in the queue, plus one that may start immediately 
     58ok($failed == 3 || $failed== 4, 'number of failure'); # All the rest 
    5959 
    6060