From e7dd22d00afa3e893665b90b08a88ed1c1e8fc38 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Mon, 21 Oct 2024 15:38:13 +0200 Subject: [PATCH] tests: Permit slow systems to take 1-450 instead of 1-40ms. Thanks to Jakub Jelen for debugging and suggested fix. Fixes #273. Signed-off-by: Simon Josefsson --- tests/unittests/torture_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unittests/torture_misc.c b/tests/unittests/torture_misc.c index b1f5a608e..9805187cd 100644 --- a/tests/unittests/torture_misc.c +++ b/tests/unittests/torture_misc.c @@ -241,7 +241,7 @@ static void torture_timeout_update(void **state){ usleep(50000); assert_int_equal(ssh_timeout_update(&ts,25), 0); assert_in_range(ssh_timeout_update(&ts,30000),29000,29960); - assert_in_range(ssh_timeout_update(&ts,75),1,40); + assert_in_range(ssh_timeout_update(&ts,500),1,450); assert_int_equal(ssh_timeout_update(&ts,0),0); assert_int_equal(ssh_timeout_update(&ts,-1),-1); } -- GitLab