diff options
Diffstat (limited to 'internal/db/backup_test.go')
-rw-r--r-- | internal/db/backup_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/db/backup_test.go b/internal/db/backup_test.go index 047a2dca..1221dac3 100644 --- a/internal/db/backup_test.go +++ b/internal/db/backup_test.go @@ -20,6 +20,7 @@ import ( "gogs.io/gogs/internal/auth/github" "gogs.io/gogs/internal/auth/pam" "gogs.io/gogs/internal/cryptoutil" + "gogs.io/gogs/internal/dbtest" "gogs.io/gogs/internal/lfsutil" "gogs.io/gogs/internal/testutil" ) @@ -35,7 +36,7 @@ func TestDumpAndImport(t *testing.T) { t.Fatalf("New table has added (want 4 got %d), please add new tests for the table and update this check", len(Tables)) } - db := initTestDB(t, "dumpAndImport", Tables...) + db := dbtest.NewDB(t, "dumpAndImport", Tables...) setupDBToDump(t, db) dumpTables(t, db) importTables(t, db) |