From ec77100fb56aca4ae04ed5025a86991cf51ff097 Mon Sep 17 00:00:00 2001 From: tanlang Date: Mon, 28 Aug 2023 16:46:15 +0800 Subject: [PATCH] chore: allocate more time foe unit test in ci --- .circleci/config.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e9d286fc2f..258932ddb9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,7 +25,7 @@ commands: description: Coverage flag. Set to the empty string to disable. go-test-flags: type: string - default: "-timeout 30m" + default: "-timeout 45m" description: Flags passed to go test. suite: type: string diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1734a8fff3..04ca80ce7d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -59,7 +59,7 @@ jobs: run: go test -coverpkg=./... -coverprofile=coverage_venus_shared.txt -covermode=atomic -timeout=30m -parallel=4 -v ./venus-shared/... - name: Unit Test - run: go test -coverpkg=./... -coverprofile=coverage_unit.txt -covermode=atomic -timeout=30m -parallel=4 -v $(go list ./... | grep -v /venus-shared/) -integration=false -unit=true + run: go test -coverpkg=./... -coverprofile=coverage_unit.txt -covermode=atomic -timeout=45m -parallel=4 -v $(go list ./... | grep -v /venus-shared/) -integration=false -unit=true - name: Integration Test run: go test -coverpkg=./... -coverprofile=coverage_integration.txt -covermode=atomic -timeout=30m -parallel=4 -v $(go list ./... | grep -v /venus-shared/) -integration=true -unit=false