From 3da6d256f47604fc5b8f3b63d595d8e230c8ffae Mon Sep 17 00:00:00 2001 From: zeripath Date: Sun, 8 Dec 2019 01:14:50 +0000 Subject: Missed defer prepareTestEnv (#9285) * onGiteaRun should defer the cleanup from prepareTestEnv * Some more missed defers --- integrations/git_helper_for_declarative_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'integrations/git_helper_for_declarative_test.go') diff --git a/integrations/git_helper_for_declarative_test.go b/integrations/git_helper_for_declarative_test.go index 1eb1f1dc8b..b334c55d3c 100644 --- a/integrations/git_helper_for_declarative_test.go +++ b/integrations/git_helper_for_declarative_test.go @@ -78,7 +78,7 @@ func allowLFSFilters() []string { func onGiteaRun(t *testing.T, callback func(*testing.T, *url.URL), prepare ...bool) { if len(prepare) == 0 || prepare[0] { - prepareTestEnv(t, 1) + defer prepareTestEnv(t, 1)() } s := http.Server{ Handler: mac, -- cgit v1.2.3