From b0f7457d9ef6e16d4a3197f7544035d5d387e201 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Sat, 16 Sep 2017 13:16:21 -0700 Subject: Improve issue search (#2387) * Improve issue indexer * Fix new issue sqlite bug * Different test indexer paths for each db * Add integration indexer paths to make clean --- integrations/integration_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'integrations/integration_test.go') diff --git a/integrations/integration_test.go b/integrations/integration_test.go index 0b5d8a764d..e18be523cb 100644 --- a/integrations/integration_test.go +++ b/integrations/integration_test.go @@ -57,7 +57,14 @@ func TestMain(m *testing.M) { fmt.Printf("Error initializing test database: %v\n", err) os.Exit(1) } - os.Exit(m.Run()) + exitCode := m.Run() + + if err = os.RemoveAll(setting.Indexer.IssuePath); err != nil { + fmt.Printf("os.RemoveAll: %v\n", err) + os.Exit(1) + } + + os.Exit(exitCode) } func initIntegrationTest() { -- cgit v1.2.3