fix(unified): set SQLite path in cfg for reusing shared DB (#114580)

This commit is contained in:
Rafael Bortolon Paulovic
2025-12-01 11:30:22 +01:00
committed by GitHub
parent 2da171595a
commit 7fce2d9516
+3
View File
@@ -107,6 +107,9 @@ func StartGrafanaEnvWithDB(t *testing.T, grafDir, cfgPath string) (string, *serv
dbCfg.Key("user").SetValue(testDB.User)
dbCfg.Key("password").SetValue(testDB.Password)
dbCfg.Key("name").SetValue(testDB.Database)
if testDB.Path != "" {
dbCfg.Key("path").SetValue(testDB.Path)
}
t.Log("Using test database", "type", testDB.DriverName, "host", testDB.Host, "port", testDB.Port, "user", testDB.User, "name", testDB.Database, "path", testDB.Path)