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 <ynezz@true.cz>
This commit is contained in:
Petr Štetiar 2020-05-21 16:28:29 +02:00
parent 89fb6136ad
commit eeddf22d9c

View file

@ -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);