Skip to content

Commit

Permalink
increase unit test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc committed Mar 24, 2023
1 parent 8c40956 commit 2fc2bae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
gcc --version
$env:ZZZ_SKIP_WINDOWS_SERVER_VERSION_CHECK_NOT_SUPPORTED_IN_PRODUCTION = 'true'
$packages=go list .\... | Where-Object {$_ -NotMatch 'vendor'}
go test -v -tags unit -timeout=40s $packages
go test -v -tags unit -timeout=120s $packages
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ ifneq (${BUILD_PLATFORM},aarch64)
endif

test:
cd agent && GO111MODULE=on ${GOTEST} ${VERBOSE} -tags unit -mod vendor -coverprofile ../cover.out -timeout=60s ./... && cd ..
cd agent && GO111MODULE=on ${GOTEST} ${VERBOSE} -tags unit -mod vendor -coverprofile ../cover.out -timeout=120s ./... && cd ..
go tool cover -func cover.out > coverprofile.out

test-init:
go test -count=1 -short -v -coverprofile cover.out ./ecs-init/...
go tool cover -func cover.out > coverprofile-init.out

test-silent:
cd agent && GO111MODULE=on ${GOTEST} -tags unit -mod vendor -coverprofile ../cover.out -timeout=60s ./... && cd ..
cd agent && GO111MODULE=on ${GOTEST} -tags unit -mod vendor -coverprofile ../cover.out -timeout=120s ./... && cd ..
go tool cover -func cover.out > coverprofile.out

.PHONY: analyze-cover-profile
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-unit-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $cwd = (pwd).Path
try {
cd $cwd
$packages=go list .\agent\... | Where-Object {$_ -NotMatch 'vendor'}
go test -v -tags unit -timeout=40s $packages
go test -v -tags unit -timeout=120s $packages
$testsExitCode = $LastExitCode
} finally {
cd "$cwd"
Expand Down

0 comments on commit 2fc2bae

Please sign in to comment.