Skip to content
  • Klaus Aehlig's avatar
    Avoid races in TestFilterRateLimit · 43b45518
    Klaus Aehlig authored
    
    
    The test submits 3 jobs in an environment rate-limited to two, and verifies
    that the first 2 jobs are running whereas the third one remains queued. However,
    it takes for Ganeti some time to get a submitted job to actually being confirmed
    waiting (in some circumstances over a second). So wait a bit longer to avoid
    losing the race. While there, increase the time of the delay jobs to avoid
    them finishing during that test in an extremely slowly running QA. (Note that
    the jobs are killed forcefully at the end of the test, so that time is never
    really waited for.)
    
    Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
    Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
    43b45518