Replace remaining calls to testing.Short where possible. (#110765)

* Replace remaining calls to testing.Short where possible.
* Update style guide.
* Revert change in TestAlertmanager_ExtraDedupStage, as it doesn't work.
* Make TestAlertRulePostExport into integration test.
This commit is contained in:
Peter Štibraný
2025-09-09 08:16:12 +00:00
committed by GitHub
parent ffcc0e8de0
commit c32650e9d8
16 changed files with 76 additions and 88 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ func (suite *FSQLTestSuite) AfterTest(suiteName, testName string) {
suite.server.Shutdown()
}
func TestFSQLTestSuite(t *testing.T) {
func TestIntegrationFSQLTestSuite(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test in short mode")
}
+1 -4
View File
@@ -36,11 +36,8 @@ func TestIntegrationMySQLSnapshots(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test in short mode")
}
shouldRunTest := func() bool {
if testing.Short() {
return false
}
shouldRunTest := func() bool {
testDbName, present := os.LookupEnv("GRAFANA_TEST_DB")
if present && testDbName == "mysql" {