Chore: Timeout integration package tests faster (#56287)
This commit is contained in:
@@ -116,13 +116,13 @@ test-go-integration: ## Run integration tests for backend with flags.
|
|||||||
test-go-integration-postgres: devenv-postgres ## Run integration tests for postgres backend with flags.
|
test-go-integration-postgres: devenv-postgres ## Run integration tests for postgres backend with flags.
|
||||||
@echo "test backend integration postgres tests"
|
@echo "test backend integration postgres tests"
|
||||||
$(GO) clean -testcache
|
$(GO) clean -testcache
|
||||||
$(GO) list './pkg/...' | xargs -I {} sh -c 'GRAFANA_TEST_DB=postgres go test -run Integration -covermode=atomic -timeout=30m {}'
|
$(GO) list './pkg/...' | xargs -I {} sh -c 'GRAFANA_TEST_DB=postgres go test -run Integration -covermode=atomic -timeout=2m {}'
|
||||||
|
|
||||||
.PHONY: test-go-integration-mysql
|
.PHONY: test-go-integration-mysql
|
||||||
test-go-integration-mysql: devenv-mysql ## Run integration tests for mysql backend with flags.
|
test-go-integration-mysql: devenv-mysql ## Run integration tests for mysql backend with flags.
|
||||||
@echo "test backend integration mysql tests"
|
@echo "test backend integration mysql tests"
|
||||||
$(GO) clean -testcache
|
$(GO) clean -testcache
|
||||||
$(GO) list './pkg/...' | xargs -I {} sh -c 'GRAFANA_TEST_DB=mysql go test -run Integration -covermode=atomic -timeout=30m {}'
|
$(GO) list './pkg/...' | xargs -I {} sh -c 'GRAFANA_TEST_DB=mysql go test -run Integration -covermode=atomic -timeout=2m {}'
|
||||||
|
|
||||||
test-js: ## Run tests for frontend.
|
test-js: ## Run tests for frontend.
|
||||||
@echo "test frontend"
|
@echo "test frontend"
|
||||||
|
|||||||
Reference in New Issue
Block a user