From 3359227aec5bf91392926b8f2fed40cbadd5af97 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 25 Apr 2026 15:59:50 +0800 Subject: [PATCH] fix test --- cmd/main_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/main_test.go b/cmd/main_test.go index a36d05c76e0..b2b4936d930 100644 --- a/cmd/main_test.go +++ b/cmd/main_test.go @@ -7,10 +7,16 @@ import ( "context" "testing" + "code.gitea.io/gitea/models/unittest" + "github.com/stretchr/testify/assert" "github.com/urfave/cli/v3" ) +func TestMain(m *testing.M) { + unittest.MainTest(m) +} + func TestDefaultCommand(t *testing.T) { test := func(t *testing.T, args []string, expectedRetName string, expectedRetValid bool) { called := false