Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2020-05-21 17:28:29 +0300
committerPetr Štetiar <ynezz@true.cz>2020-05-21 17:28:29 +0300
commiteeddf22d9c280ccc4ca67dd269c6794ab8225f09 (patch)
tree908ada1585df49c1a9b63ba9c85174992cffb2dc /tests
parent89fb6136ad7484e4e8f9b618e530e098cf573665 (diff)
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-runqueue.c2
1 files changed, 1 insertions, 1 deletions
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);