From 9242567cf1e761a60561ae625da33cc404f1adb6 Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Fri, 5 Jan 2024 10:33:19 +0100 Subject: [PATCH] itest: set individual test timeout to 6 minutes --- .github/actions/test-lspd/action.yaml | 6 +++++- .github/workflows/integration_tests.yaml | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/actions/test-lspd/action.yaml b/.github/actions/test-lspd/action.yaml index bd09fe8..b6d1f79 100644 --- a/.github/actions/test-lspd/action.yaml +++ b/.github/actions/test-lspd/action.yaml @@ -22,6 +22,10 @@ inputs: CLN_VERSION: description: 'Core Lightning version.' required: true + timeout: + description: 'test timeout' + required: false + default: 45m runs: using: 'composite' steps: @@ -113,7 +117,7 @@ runs: - name: Test LSPD run: | go get github.com/breez/lspd/itest - go test -timeout 45m -v \ + go test -timeout ${{ inputs.timeout || '45m' }} -v \ ./itest \ -test.run \ ${{ inputs.TESTRE }} \ diff --git a/.github/workflows/integration_tests.yaml b/.github/workflows/integration_tests.yaml index 05f5b1f..4f19400 100644 --- a/.github/workflows/integration_tests.yaml +++ b/.github/workflows/integration_tests.yaml @@ -134,6 +134,7 @@ jobs: CLIENT_REF: ${{ env.CLIENT_REF }} GO_VERSION: ${{ env.GO_VERSION }} CLN_VERSION: ${{ env.CLN_VERSION }} + timeout: 6m run-lsps2-test: runs-on: ubuntu-22.04 @@ -176,6 +177,7 @@ jobs: CLIENT_REF: ${{ env.CLIENT_REF }} GO_VERSION: ${{ env.GO_VERSION }} CLN_VERSION: ${{ env.CLN_VERSION }} + timeout: 6m run-unit-tests: runs-on: ubuntu-22.04