summaryrefslogtreecommitdiff
path: root/tests/tls-client-with-seccomp.c
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2021-01-30 18:22:18 +0100
committerDaiki Ueno <ueno@gnu.org>2021-02-17 19:03:03 +0100
commit416485f6d4dde63e90d19916ab9dee8fe972be10 (patch)
treec9b263222e38f8252c5acc4713eb191d886c927e /tests/tls-client-with-seccomp.c
parent0ae814c77b18a925552b7a763a13ed1c63e2d1bd (diff)
downloadgnutls-416485f6d4dde63e90d19916ab9dee8fe972be10.tar.gz
tests: make any ad-hoc timeout setting controllable through envvar
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'tests/tls-client-with-seccomp.c')
-rw-r--r--tests/tls-client-with-seccomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tls-client-with-seccomp.c b/tests/tls-client-with-seccomp.c
index 7577317bfd..53e8e97239 100644
--- a/tests/tls-client-with-seccomp.c
+++ b/tests/tls-client-with-seccomp.c
@@ -89,7 +89,7 @@ static void client(int fd, const char *prio)
/* Initialize TLS session
*/
gnutls_init(&session, GNUTLS_CLIENT);
- gnutls_handshake_set_timeout(session, 20 * 1000);
+ gnutls_handshake_set_timeout(session, get_timeout());
/* Use default priorities */
assert(gnutls_priority_set_direct(session,
@@ -189,7 +189,7 @@ static void server(int fd, const char *prio)
exit(1);
gnutls_init(&session, GNUTLS_SERVER);
- gnutls_handshake_set_timeout(session, 20 * 1000);
+ gnutls_handshake_set_timeout(session, get_timeout());
/* avoid calling all the priority functions, since the defaults
* are adequate.