aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/benchmarks_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/benchmarks_test.go')
-rw-r--r--integrations/benchmarks_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/integrations/benchmarks_test.go b/integrations/benchmarks_test.go
index 841ecbf7ee..5df0d7b749 100644
--- a/integrations/benchmarks_test.go
+++ b/integrations/benchmarks_test.go
@@ -11,6 +11,7 @@ import (
"testing"
"code.gitea.io/gitea/models"
+ "code.gitea.io/gitea/models/db"
api "code.gitea.io/gitea/modules/structs"
)
@@ -32,7 +33,7 @@ func BenchmarkRepoBranchCommit(b *testing.B) {
for _, repoID := range samples {
b.StopTimer()
- repo := models.AssertExistsAndLoadBean(b, &models.Repository{ID: repoID}).(*models.Repository)
+ repo := db.AssertExistsAndLoadBean(b, &models.Repository{ID: repoID}).(*models.Repository)
b.StartTimer()
b.Run(repo.Name, func(b *testing.B) {
session := loginUser(b, "user2")