mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Reduce test timeouts to 5 minutes (#56599)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user