From: Petr Štetiar Date: Thu, 21 May 2020 14:28:29 +0000 (+0200) Subject: tests: runqueue: try to fix race on GitLab CI X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=eeddf22d9c280ccc4ca67dd269c6794ab8225f09;p=oweals%2Flibubox.git tests: runqueue: try to fix race on GitLab CI Seems like the CI runners are slower and produce different test output: - [0/1] finish 'sleep 1' (killer) [1/1] start 'sleep 1' (sleeper) + [1/1] finish 'sleep 1' (killer) + [1/1] finish 'sleep 1' (killer) [1/1] cancel 'sleep 1' (sleeper) [0/1] finish 'sleep 1' (sleeper) [1/1] start 'sleep 1' (sleeper) Lets try to fix it by lowering the killing timeout. Signed-off-by: Petr Štetiar --- diff --git a/tests/test-runqueue.c b/tests/test-runqueue.c index fb99892..6bb5b50 100644 --- a/tests/test-runqueue.c +++ b/tests/test-runqueue.c @@ -129,7 +129,7 @@ static void add_sleeper(int val) }; struct sleeper *k = create_sleeper(val, &killer_type, true); - uloop_timeout_set(&k->t, 100); + uloop_timeout_set(&k->t, 10); uloop_timeout_add(&k->t); runqueue_task_add(&q, &k->proc.task, false);