diff --git a/tests/integration/repo_settings_test.go b/tests/integration/repo_settings_test.go index 2108bfa0bc..9dfe6d1af3 100644 --- a/tests/integration/repo_settings_test.go +++ b/tests/integration/repo_settings_test.go @@ -268,9 +268,9 @@ func TestProtectedBranch(t *testing.T) { func TestRepoFollowing(t *testing.T) { setting.Federation.Enabled = true + defer tests.PrepareTestEnv(t)() defer func() { setting.Federation.Enabled = false - tests.PrepareTestEnv(t)() }() federatedRoutes := http.NewServeMux()