aboutsummaryrefslogtreecommitdiff
path: root/internal/db/repos_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/repos_test.go')
-rw-r--r--internal/db/repos_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/db/repos_test.go b/internal/db/repos_test.go
index 42eedbba..7b8f2b00 100644
--- a/internal/db/repos_test.go
+++ b/internal/db/repos_test.go
@@ -8,7 +8,6 @@ import (
"testing"
"time"
- "github.com/jinzhu/gorm"
"github.com/stretchr/testify/assert"
"gogs.io/gogs/internal/errutil"
@@ -80,7 +79,7 @@ func test_repos_create(t *testing.T, db *repos) {
if err != nil {
t.Fatal(err)
}
- assert.Equal(t, gorm.NowFunc().Format(time.RFC3339), repo.Created.UTC().Format(time.RFC3339))
+ assert.Equal(t, db.NowFunc().Format(time.RFC3339), repo.Created.UTC().Format(time.RFC3339))
}
func test_repos_GetByName(t *testing.T, db *repos) {