summaryrefslogtreecommitdiffstats
path: root/integrations/integration_test.go
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-09-16 13:16:21 -0700
committerLauris BH <lauris@nix.lv>2017-09-16 23:16:21 +0300
commitb0f7457d9ef6e16d4a3197f7544035d5d387e201 (patch)
treedbe6a9b3b74f9a4a6eaa0c0cfe59fa08509edccc /integrations/integration_test.go
parent52e11b24bf5e395d83ea58c1b0fd6922efe16add (diff)
downloadgitea-b0f7457d9ef6e16d4a3197f7544035d5d387e201.tar.gz
gitea-b0f7457d9ef6e16d4a3197f7544035d5d387e201.zip
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
Diffstat (limited to 'integrations/integration_test.go')
-rw-r--r--integrations/integration_test.go9
1 files changed, 8 insertions, 1 deletions
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() {