From 1552670852a2af2e3471138a302703f5f01faf79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 24 Jan 2023 07:58:23 +0100 Subject: [PATCH] test-sleep: reduce timeout The timeout was raised during review and I wrote that I lowered it, but forgot to actually commit the diff. Follow-up for 31f62bdd79472c32d52408956d5c82e9991ca425. --- src/test/test-sleep.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/test-sleep.c b/src/test/test-sleep.c index 2290e7c3025..55890760057 100644 --- a/src/test/test-sleep.c +++ b/src/test/test-sleep.c @@ -131,10 +131,11 @@ TEST(fetch_batteries_capacity_by_name) { log_info("Battery %s: capacity = %i", name, get_capacity_by_name(capacity, name)); } - for (int i = 0; i < 5; i++) { + for (int i = 0; i < 2; i++) { usec_t interval; - sleep(1); + if (i > 0) + sleep(1); r = get_total_suspend_interval(capacity, &interval); assert_se(r >= 0 || r == -ENOENT);