From eeddf22d9c280ccc4ca67dd269c6794ab8225f09 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Thu, 21 May 2020 16:28:29 +0200 Subject: [PATCH] tests: runqueue: try to fix race on GitLab CI MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- tests/test-runqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1