diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2021-05-26 17:06:42 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2021-05-26 17:36:51 +0200 |
commit | d2a41e606bbd6074b88be46f7b0fd3cd3f7d5536 (patch) | |
tree | d4c543e049f7971cc3aec7bf4fa269fb1016bb4d /tests | |
parent | 9b7c4307a4abccaf7fde8233de9d34daed5714f6 (diff) | |
download | libssh-d2a41e606bbd6074b88be46f7b0fd3cd3f7d5536.tar.gz libssh-d2a41e606bbd6074b88be46f7b0fd3cd3f7d5536.tar.xz libssh-d2a41e606bbd6074b88be46f7b0fd3cd3f7d5536.zip |
tests: Fix running timeout tests on gitlab windows runners
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/torture_misc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unittests/torture_misc.c b/tests/unittests/torture_misc.c index 2d2d6860..c7b99b5d 100644 --- a/tests/unittests/torture_misc.c +++ b/tests/unittests/torture_misc.c @@ -209,7 +209,8 @@ static void torture_timeout_elapsed(void **state){ struct ssh_timestamp ts; (void) state; ssh_timestamp_init(&ts); - usleep(50000); + usleep(30000); + assert_true(ssh_timeout_elapsed(&ts,25)); assert_false(ssh_timeout_elapsed(&ts,30000)); assert_false(ssh_timeout_elapsed(&ts,75)); |