From 0897a092b265edc0cb6496c7f29a6ffabb282f7d Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 7 Dec 2013 22:33:52 +0100 Subject: [PATCH] Fix tests on OpenBSD. --- tests/tests-normal.sh | 1 + tests/tests-passthrough.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/tests-normal.sh b/tests/tests-normal.sh index 056780f..c16de51 100755 --- a/tests/tests-normal.sh +++ b/tests/tests-normal.sh @@ -70,6 +70,7 @@ test_no_invalid_certificate # Stop server and try a "MITM" with a bad certificate. echo kill $pid_server || echo 'failed to kill gnutls-serv' +sleep 3 # necessary on some systems like OpenBSD server_background --x509certfile "$srcdir/server-bad.pem" \ --x509keyfile "$srcdir/server-key.pem" wait_for_ports 4712 diff --git a/tests/tests-passthrough.sh b/tests/tests-passthrough.sh index c2351d9..1a94f38 100755 --- a/tests/tests-passthrough.sh +++ b/tests/tests-passthrough.sh @@ -72,6 +72,7 @@ test_no_invalid_certificate # Stop server and try a "MITM" with a bad certificate. echo kill $pid_server || echo 'failed to kill gnutls-serv' +sleep 3 # necessary on some systems like OpenBSD server_background --x509certfile "$srcdir/server-bad.pem" \ --x509keyfile "$srcdir/server-key.pem" wait_for_ports 4712 -- 2.45.2