From d7a0cbcfbb2bf1c2ea1a609d1f6c0952f3311c0d 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 Reviewed-by: Jakub Jelen --- 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 5a3b4805..b1f5a608 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)); }