mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 08:42:32 -05:00
[TESTS] disable test failure on log.Error for now (part 2)
Fixes: https://codeberg.org/forgejo/forgejo/issues/3153
This commit is contained in:
parent
90b160dd34
commit
fd62033b98
3 changed files with 3 additions and 6 deletions
|
@ -161,8 +161,7 @@ func MainTest(m *testing.M) {
|
||||||
exitStatus := m.Run()
|
exitStatus := m.Run()
|
||||||
|
|
||||||
if err := testlogger.WriterCloser.Reset(); err != nil && exitStatus == 0 {
|
if err := testlogger.WriterCloser.Reset(); err != nil && exitStatus == 0 {
|
||||||
fmt.Printf("testlogger.WriterCloser.Reset: %v\n", err)
|
fmt.Printf("testlogger.WriterCloser.Reset: error ignored: %v\n", err)
|
||||||
os.Exit(1)
|
|
||||||
}
|
}
|
||||||
if err := removeAllWithRetry(setting.RepoRootPath); err != nil {
|
if err := removeAllWithRetry(setting.RepoRootPath); err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "os.RemoveAll: %v\n", err)
|
fmt.Fprintf(os.Stderr, "os.RemoveAll: %v\n", err)
|
||||||
|
|
|
@ -60,8 +60,7 @@ func TestMain(m *testing.M) {
|
||||||
exitVal := m.Run()
|
exitVal := m.Run()
|
||||||
|
|
||||||
if err := testlogger.WriterCloser.Reset(); err != nil {
|
if err := testlogger.WriterCloser.Reset(); err != nil {
|
||||||
fmt.Printf("testlogger.WriterCloser.Reset: %v\n", err)
|
fmt.Printf("testlogger.WriterCloser.Reset: error ignored: %v\n", err)
|
||||||
os.Exit(1)
|
|
||||||
}
|
}
|
||||||
if err = util.RemoveAll(setting.Indexer.IssuePath); err != nil {
|
if err = util.RemoveAll(setting.Indexer.IssuePath); err != nil {
|
||||||
fmt.Printf("util.RemoveAll: %v\n", err)
|
fmt.Printf("util.RemoveAll: %v\n", err)
|
||||||
|
|
|
@ -184,8 +184,7 @@ func TestMain(m *testing.M) {
|
||||||
exitCode := m.Run()
|
exitCode := m.Run()
|
||||||
|
|
||||||
if err := testlogger.WriterCloser.Reset(); err != nil {
|
if err := testlogger.WriterCloser.Reset(); err != nil {
|
||||||
fmt.Printf("testlogger.WriterCloser.Reset: %v\n", err)
|
fmt.Printf("testlogger.WriterCloser.Reset: error ignored: %v\n", err)
|
||||||
os.Exit(1)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = util.RemoveAll(setting.Indexer.IssuePath); err != nil {
|
if err = util.RemoveAll(setting.Indexer.IssuePath); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue