aboutsummaryrefslogtreecommitdiff
path: root/internal/db/lfs_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/lfs_test.go')
-rw-r--r--internal/db/lfs_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/db/lfs_test.go b/internal/db/lfs_test.go
index 49d94406..4aff4f22 100644
--- a/internal/db/lfs_test.go
+++ b/internal/db/lfs_test.go
@@ -8,7 +8,6 @@ import (
"testing"
"time"
- "github.com/jinzhu/gorm"
"github.com/stretchr/testify/assert"
"gogs.io/gogs/internal/errutil"
@@ -61,7 +60,7 @@ func test_lfs_CreateObject(t *testing.T, db *lfs) {
if err != nil {
t.Fatal(err)
}
- assert.Equal(t, gorm.NowFunc().Format(time.RFC3339), object.CreatedAt.Format(time.RFC3339))
+ assert.Equal(t, db.NowFunc().Format(time.RFC3339), object.CreatedAt.Format(time.RFC3339))
// Try create second LFS object with same oid should fail
err = db.CreateObject(repoID, oid, 12, lfsutil.StorageLocal)