libqb/0001-fix-loop-test.patch
Angus Salkeld 39294f20ae Fix the loop test
Fails in koji as the build machine must be slower.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-02-07 22:48:17 +11:00

14 lines
573 B
Diff

diff --git a/tests/check_loop.c b/tests/check_loop.c
index eb79a51..b67df76 100644
--- a/tests/check_loop.c
+++ b/tests/check_loop.c
@@ -210,7 +210,7 @@ START_TEST(test_job_rate_limit)
* and cause cpu spin. We are going to say that a spin is more than
* one job per 50ms if there is only one job pending in the loop.
*/
- _ck_assert_int(job_1_run_count, <, (RATE_LIMIT_RUNTIME_SEC * (QB_TIME_MS_IN_SEC/50)) + 1);
+ _ck_assert_int(job_1_run_count, <, (RATE_LIMIT_RUNTIME_SEC * (QB_TIME_MS_IN_SEC/50)) + 5);
qb_loop_destroy(l);
qb_util_stopwatch_free(rl_sw);
}