diff options
author | Joe Chen <jc@unknwon.io> | 2022-06-12 14:15:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-12 14:15:01 +0800 |
commit | b772603d78cb10f0501f3d08b01553bb33914b6e (patch) | |
tree | 5f160df17f1bbd357370b3aeeb5289b0a5c3c08d /internal/db/backup_test.go | |
parent | 2e19f5a3c8193776685a5e9fea9ca8663f14dd8d (diff) |
migrations: add tests and remove XORM (#7050)
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) |