Replace check for integration tests. (#110707)

* Replace check for integration tests.
* Revert changes in pkg/tsdb/mysql packages.
* Fix formatting of few tests.
This commit is contained in:
Peter Štibraný
2025-09-08 15:49:49 +02:00
committed by GitHub
parent 544872d117
commit 7fd9ab9481
218 changed files with 1130 additions and 1630 deletions
+4 -6
View File
@@ -5,14 +5,14 @@ import (
"errors"
"testing"
"github.com/grafana/grafana/pkg/util/testutil"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestIntegrationReuseSessionWithTransaction(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}
testutil.SkipIntegrationTestInShortMode(t)
ss, _ := InitTestDB(t)
t.Run("top level transaction", func(t *testing.T) {
@@ -69,9 +69,7 @@ func TestIntegrationReuseSessionWithTransaction(t *testing.T) {
}
func TestIntegrationPublishAfterCommitWithNestedTransactions(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}
testutil.SkipIntegrationTestInShortMode(t)
ss, _ := InitTestDB(t)
ctx := context.Background()