Move SkipIntegrationTestInShortMode to testutil. (#110750)

* Move SkipIntegrationTestInShortMode to testutil.

* make update-workspace
This commit is contained in:
Peter Štibraný
2025-09-08 12:50:31 +02:00
committed by GitHub
parent 08230cbc09
commit d09708fe55
7 changed files with 23 additions and 32 deletions
-11
View File
@@ -5,7 +5,6 @@ import (
"crypto/tls"
"net/url"
"os"
"strings"
"testing"
"github.com/go-openapi/strfmt"
@@ -25,16 +24,6 @@ import (
"github.com/grafana/grafana/pkg/setting"
)
func SkipIntegrationTestInShortMode(t testing.TB) {
t.Helper()
if !strings.HasPrefix(t.Name(), "TestIntegration") {
t.Fatal("test is not an integration test")
}
if testing.Short() {
t.Skip("skipping integration test in short mode")
}
}
func CreateUser(t *testing.T, db db.DB, cfg *setting.Cfg, cmd user.CreateUserCommand) int64 {
t.Helper()