From a69a09ce22460089998e10eea4ae0958e7340854 Mon Sep 17 00:00:00 2001 From: Fabien Danieau Date: Wed, 7 Aug 2024 15:54:40 +0200 Subject: [PATCH] enhancement #46: add 30s timeout --- .github/workflows/unit_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 385935a..8593b20 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -36,7 +36,7 @@ jobs: - name: Unit tests uses: BerniWittmann/background-server-action@v1 with: - command: until lsof -i :8443; do sleep 1; done && coverage run -m pytest + command: timeout --signal=SIGTERM 30s bash -c 'until lsof -i :8443; do sleep 1; done' && coverage run -m pytest start: cd $GITHUB_WORKSPACE/gst-plugins-rs/net/webrtc/signalling/ && cargo run --bin gst-webrtc-signalling-server - name: Generate reports