diff options
Diffstat (limited to 'integrations/migrate_test.go')
-rw-r--r-- | integrations/migrate_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/integrations/migrate_test.go b/integrations/migrate_test.go index b0395fbc3d..e79be238d5 100644 --- a/integrations/migrate_test.go +++ b/integrations/migrate_test.go @@ -10,6 +10,7 @@ import ( "testing" "code.gitea.io/gitea/models" + "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/modules/migrations" "code.gitea.io/gitea/modules/setting" @@ -17,9 +18,9 @@ import ( ) func TestMigrateLocalPath(t *testing.T) { - assert.NoError(t, models.PrepareTestDatabase()) + assert.NoError(t, db.PrepareTestDatabase()) - adminUser := models.AssertExistsAndLoadBean(t, &models.User{Name: "user1"}).(*models.User) + adminUser := db.AssertExistsAndLoadBean(t, &models.User{Name: "user1"}).(*models.User) old := setting.ImportLocalPaths setting.ImportLocalPaths = true |