From d71559527694b5c96e2df3f33ff718b1d8ded065 Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Sun, 6 Sep 2026 13:06:43 +0200 Subject: [PATCH] Readd sleep command when trying to start server --- t/40_tls13.only.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/40_tls13.only.t b/t/40_tls13.only.t index a65139d..b086a4d 100755 --- a/t/40_tls13.only.t +++ b/t/40_tls13.only.t @@ -60,7 +60,7 @@ fi # Generate self-signed cert and key if they don't exist if [ ! -f "$CERT" ] || [ ! -f "$KEY" ]; then echo "Generating self-signed certificate and key..." - $OPENSSL req -x509 -newkey rsa:2048 -keyout "$KEY" -out "$CERT" -days 42 -nodes -subj "/CN=localhost" -addext "subjectAltName=DNS:localhost,IP:127.0.0.1" >/dev/null 2>&1 + $OPENSSL req -x509 -newkey rsa:2048 -keyout "$KEY" -out "$CERT" -days 42 -nodes -subj "/CN=localhost" -addext "subjectAltName=DNS:localhost,IP:127.0.0.1" >/dev/null fi # Start OpenSSL server @@ -108,6 +108,7 @@ elsif ($pid > 0) { close($socket); last; } + sleep 1; } ok($ready, "Server is listening on $listenip:$port");