Skip to content

Commit 2f1862c

Browse files
committed
fix test
1 parent 3e0687f commit 2f1862c

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

services/git/compare_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 The Gitea Authors. All rights reserved.
1+
// Copyright 2026 The Gitea Authors. All rights reserved.
22
// SPDX-License-Identifier: MIT
33

44
package git

services/git/main_test.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2026 The Gitea Authors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
4+
package git
5+
6+
import (
7+
"testing"
8+
9+
"code.gitea.io/gitea/models/unittest"
10+
11+
_ "code.gitea.io/gitea/models"
12+
_ "code.gitea.io/gitea/models/actions"
13+
_ "code.gitea.io/gitea/models/activities"
14+
)
15+
16+
func TestMain(m *testing.M) {
17+
unittest.MainTest(m)
18+
}

0 commit comments

Comments
 (0)