aboutsummaryrefslogtreecommitdiff
path: root/internal/db/two_factors_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/two_factors_test.go')
-rw-r--r--internal/db/two_factors_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/db/two_factors_test.go b/internal/db/two_factors_test.go
index acd9a576..935844d4 100644
--- a/internal/db/two_factors_test.go
+++ b/internal/db/two_factors_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 TestTwoFactors(t *testing.T) {
tables := []interface{}{new(TwoFactor), new(TwoFactorRecoveryCode)}
db := &twoFactors{
- DB: initTestDB(t, "twoFactors", tables...),
+ DB: dbtest.NewDB(t, "twoFactors", tables...),
}
for _, tc := range []struct {