Chore: Reduce test timeouts to 5 minutes (#56599)

This commit is contained in:
Serge Zaitsev
2022-10-10 09:26:47 +02:00
committed by GitHub
parent 7312a2dab0
commit 169610fd27
2 changed files with 32 additions and 32 deletions

View File

@@ -485,7 +485,7 @@ def test_backend_step(edition):
'wire-install',
],
'commands': [
'go test -tags=pro -covermode=atomic -timeout=30m ./pkg/...',
'go test -tags=pro -covermode=atomic -timeout=5m ./pkg/...',
],
}
else:
@@ -496,7 +496,7 @@ def test_backend_step(edition):
'wire-install',
],
'commands': [
'go test -short -covermode=atomic -timeout=30m ./pkg/...',
'go test -short -covermode=atomic -timeout=5m ./pkg/...',
],
}
@@ -510,7 +510,7 @@ def test_backend_integration_step(edition):
'wire-install',
],
'commands': [
'go test -run Integration -covermode=atomic -timeout=30m ./pkg/...',
'go test -run Integration -covermode=atomic -timeout=5m ./pkg/...',
],
}
@@ -859,7 +859,7 @@ def postgres_integration_tests_step(edition, ver_mode):
'devenv/docker/blocks/postgres_tests/setup.sql',
# Make sure that we don't use cached results for another database
'go clean -testcache',
"go list './pkg/...' | xargs -I {} sh -c 'go test -run Integration -covermode=atomic -timeout=30m {}'",
"go list './pkg/...' | xargs -I {} sh -c 'go test -run Integration -covermode=atomic -timeout=5m {}'",
]
return {
'name': 'postgres-integration-tests',
@@ -882,7 +882,7 @@ def mysql_integration_tests_step(edition, ver_mode):
'cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root -prootpass',
# Make sure that we don't use cached results for another database
'go clean -testcache',
"go list './pkg/...' | xargs -I {} sh -c 'go test -run Integration -covermode=atomic -timeout=30m {}'",
"go list './pkg/...' | xargs -I {} sh -c 'go test -run Integration -covermode=atomic -timeout=5m {}'",
]
return {
'name': 'mysql-integration-tests',