aboutsummaryrefslogtreecommitdiff
path: root/internal/db/lfs_test.go
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-06-12 14:15:01 +0800
committerGitHub <noreply@github.com>2022-06-12 14:15:01 +0800
commitb772603d78cb10f0501f3d08b01553bb33914b6e (patch)
tree5f160df17f1bbd357370b3aeeb5289b0a5c3c08d /internal/db/lfs_test.go
parent2e19f5a3c8193776685a5e9fea9ca8663f14dd8d (diff)
migrations: add tests and remove XORM (#7050)
Diffstat (limited to 'internal/db/lfs_test.go')
-rw-r--r--internal/db/lfs_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/db/lfs_test.go b/internal/db/lfs_test.go
index e650369c..07518361 100644
--- a/internal/db/lfs_test.go
+++ b/internal/db/lfs_test.go
@@ -12,6 +12,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+ "gogs.io/gogs/internal/dbtest"
"gogs.io/gogs/internal/errutil"
"gogs.io/gogs/internal/lfsutil"
)
@@ -25,7 +26,7 @@ func TestLFS(t *testing.T) {
tables := []interface{}{new(LFSObject)}
db := &lfs{
- DB: initTestDB(t, "lfs", tables...),
+ DB: dbtest.NewDB(t, "lfs", tables...),
}
for _, tc := range []struct {