From 3effc8bde23afeca95f97224177520cdd326debe Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Fri, 13 Sep 2024 09:51:51 +0200 Subject: [PATCH] tests: Permit slow systems to take 300ms instead of 75ms. Thanks to Jakub Jelen for debugging. Fixes #273. Reproduce problem by changing the value to 1ms. 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 5a3b48057..b1f5a608e 100644 --- a/tests/unittests/torture_misc.c +++ b/tests/unittests/torture_misc.c @@ -229,7 +229,7 @@ static void torture_timeout_elapsed(void **state){ assert_true(ssh_timeout_elapsed(&ts,25)); assert_false(ssh_timeout_elapsed(&ts,30000)); - assert_false(ssh_timeout_elapsed(&ts,75)); + assert_false(ssh_timeout_elapsed(&ts,300)); assert_true(ssh_timeout_elapsed(&ts,0)); assert_false(ssh_timeout_elapsed(&ts,-1)); } -- GitLab