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:
@@ -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")
|
||||
}
|
||||
|
||||
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user