From 416485f6d4dde63e90d19916ab9dee8fe972be10 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Sat, 30 Jan 2021 18:22:18 +0100 Subject: tests: make any ad-hoc timeout setting controllable through envvar Signed-off-by: Daiki Ueno --- tests/tls-client-with-seccomp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/tls-client-with-seccomp.c') 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. -- cgit v1.2.1