aboutsummaryrefslogtreecommitdiff
path: root/tests/unittests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2021-05-26 17:06:42 +0200
committerAndreas Schneider <asn@cryptomilk.org>2021-05-26 17:36:51 +0200
commitd2a41e606bbd6074b88be46f7b0fd3cd3f7d5536 (patch)
treed4c543e049f7971cc3aec7bf4fa269fb1016bb4d /tests/unittests
parent9b7c4307a4abccaf7fde8233de9d34daed5714f6 (diff)
downloadlibssh-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/unittests')
-rw-r--r--tests/unittests/torture_misc.c3
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));