fix(f3): do not run the F3 CLI if F3 is disabled
This commit is contained in:
parent
53d4e90411
commit
50afca7961
3 changed files with 14 additions and 0 deletions
|
@ -10,6 +10,8 @@ import (
|
|||
"testing"
|
||||
|
||||
"code.gitea.io/gitea/cmd/forgejo"
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
"code.gitea.io/gitea/modules/test"
|
||||
"code.gitea.io/gitea/services/f3/driver/options"
|
||||
"code.gitea.io/gitea/tests"
|
||||
|
||||
|
@ -56,6 +58,7 @@ func runApp(ctx context.Context, args ...string) (string, error) {
|
|||
|
||||
func TestF3_CmdMirror_LocalForgejo(t *testing.T) {
|
||||
defer tests.PrepareTestEnv(t)()
|
||||
defer test.MockVariableValue(&setting.F3.Enabled, true)()
|
||||
|
||||
ctx := context.Background()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue