summaryrefslogtreecommitdiffstats
path: root/models/engine_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/engine_test.go')
-rw-r--r--models/engine_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/engine_test.go b/models/engine_test.go
index 75c854b185..6f4d114db3 100644
--- a/models/engine_test.go
+++ b/models/engine_test.go
@@ -28,8 +28,7 @@ func TestDumpDatabase(t *testing.T) {
}
assert.NoError(t, db.GetEngine(db.DefaultContext).Sync2(new(Version)))
- for _, dbName := range setting.SupportedDatabases {
- dbType := setting.GetDBTypeByName(dbName)
+ for _, dbType := range setting.SupportedDatabaseTypes {
assert.NoError(t, db.DumpDatabase(filepath.Join(dir, dbType+".sql"), dbType))
}
}