diff options
Diffstat (limited to 'integrations/integration_test.go')
-rw-r--r-- | integrations/integration_test.go | 9 |
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() { |