]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests/srp: increase timeouts
authorDmitry Baryshkov <dbaryshkov@gmail.com>
Tue, 28 Apr 2020 14:45:40 +0000 (17:45 +0300)
committerDmitry Baryshkov <dbaryshkov@gmail.com>
Thu, 30 Apr 2020 10:23:03 +0000 (13:23 +0300)
SRP test times out if running on the GitLab CI with mini-gmp version of
Nettle. Increase timeouts to let the test pass.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
tests/srp.c

index e659f22163cb3421251ff3e0897605c7aece03da..c927e877be145b105e5b3336269bfb7fd95cb171 100644 (file)
@@ -131,7 +131,7 @@ static void client(int fd, const char *prio, const char *user, const char *pass,
 
        /* Use default priorities */
        assert(gnutls_priority_set_direct(session, prio, NULL)>=0);
-       gnutls_handshake_set_timeout(session, 40 * 1000);
+       gnutls_handshake_set_timeout(session, 100 * 1000);
 
        /* put the anonymous credentials to the current session
         */
@@ -229,7 +229,7 @@ static void server(int fd, const char *prio)
                                s_x509_cred);
 
        gnutls_transport_set_int(session, fd);
-       gnutls_handshake_set_timeout(session, 40 * 1000);
+       gnutls_handshake_set_timeout(session, 100 * 1000);
 
        do {
                ret = gnutls_handshake(session);