diff options
Diffstat (limited to 'internal/db/repos_test.go')
-rw-r--r-- | internal/db/repos_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/db/repos_test.go b/internal/db/repos_test.go index 32482506..0f7617de 100644 --- a/internal/db/repos_test.go +++ b/internal/db/repos_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" ) @@ -24,7 +25,7 @@ func TestRepos(t *testing.T) { tables := []interface{}{new(Repository)} db := &repos{ - DB: initTestDB(t, "repos", tables...), + DB: dbtest.NewDB(t, "repos", tables...), } for _, tc := range []struct { |