From dbae1a1f2c141aa8da9f22366a3275dc3adb9dae Mon Sep 17 00:00:00 2001 From: Stefano Lombardo Date: Wed, 22 May 2024 23:22:57 +0200 Subject: [PATCH] tests(yaml): fix last test to return only a warning --- .github/workflows/webserv.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/webserv.yml b/.github/workflows/webserv.yml index 01a82df..c62ed50 100644 --- a/.github/workflows/webserv.yml +++ b/.github/workflows/webserv.yml @@ -147,7 +147,7 @@ jobs: - name: Verify no lingering sockets run: | sleep 5 # Give some time for sockets to close properly - lingering_sockets=$(lsof -iTCP -sTCP:LISTEN -nP | grep 'webserv') + lingering_sockets=$(lsof -iTCP -sTCP:LISTEN -nP | grep 'webserv' || true) if [ -n "$lingering_sockets" ]; then echo "Unexpected lingering sockets found:" echo "$lingering_sockets"