mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-31 03:14:17 +09:00
Fix race in integration testlogger (#6556)
* Fix race in logger * At testing end drop the reference to the last test.
This commit is contained in:
1 parent
346036d47f
commit
c02c6a144f
2 files changed
+23
No files matched your search
@@ -81,6 +81,8 @@ func TestMain(m *testing.M) {
|
||||
}
|
||||
exitCode := m.Run()
|
||||
|
||||
writerCloser.t = nil
|
||||
|
||||
if err = os.RemoveAll(setting.Indexer.IssuePath); err != nil {
|
||||
fmt.Printf("os.RemoveAll: %v\n", err)
|
||||
os.Exit(1)
|
||||
|
||||
Reference in new issue
Block a user