aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2021-05-26 17:06:42 +0200
committerJakub Jelen <jjelen@redhat.com>2021-08-17 15:46:54 +0200
commit2356152329a037d2b266e4fbf3a14040a9a3db05 (patch)
treefd4318d1d1b161f5ef5349e429c3ed018ec3198e
parent180cfd079906d2e995fccaac5d6a1a57d65b42aa (diff)
downloadlibssh-2356152329a037d2b266e4fbf3a14040a9a3db05.tar.gz
libssh-2356152329a037d2b266e4fbf3a14040a9a3db05.tar.xz
libssh-2356152329a037d2b266e4fbf3a14040a9a3db05.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> (cherry picked from commit d2a41e606bbd6074b88be46f7b0fd3cd3f7d5536)
-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 ef06d65f..0a48abbe 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));