diff options
author | Earl Warren <earl-warren@noreply.codeberg.org> | 2024-04-11 08:40:12 +0200 |
---|---|---|
committer | Earl Warren <earl-warren@noreply.codeberg.org> | 2024-04-11 08:40:12 +0200 |
commit | 7af114aebe2045f84dc00c07a05537f2d87cb86a (patch) | |
tree | 59b136b3e01518301cfb27cf8f2bc30603fad8f4 | |
parent | Update ghcr.io/visualon/renovate Docker tag to v37.282.1 (diff) | |
parent | [TESTS] disable test failure on log.Error for now (part 2) (diff) | |
download | forgejo-7af114aebe2045f84dc00c07a05537f2d87cb86a.tar.xz forgejo-7af114aebe2045f84dc00c07a05537f2d87cb86a.zip |
Merge pull request '[TESTS] disable test failure on log.Error for now (part 2)' (#3154) from earl-warren/forgejo:wip-transient-errors into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3154
Reviewed-by: oliverpool <oliverpool@noreply.codeberg.org>
-rw-r--r-- | models/migrations/base/tests.go | 3 | ||||
-rw-r--r-- | tests/e2e/e2e_test.go | 3 | ||||
-rw-r--r-- | tests/integration/integration_test.go | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/models/migrations/base/tests.go b/models/migrations/base/tests.go index 0726211ea8..0989902a65 100644 --- a/models/migrations/base/tests.go +++ b/models/migrations/base/tests.go @@ -161,8 +161,7 @@ func MainTest(m *testing.M) { exitStatus := m.Run() if err := testlogger.WriterCloser.Reset(); err != nil && exitStatus == 0 { - fmt.Printf("testlogger.WriterCloser.Reset: %v\n", err) - os.Exit(1) + fmt.Printf("testlogger.WriterCloser.Reset: error ignored: %v\n", err) } if err := removeAllWithRetry(setting.RepoRootPath); err != nil { fmt.Fprintf(os.Stderr, "os.RemoveAll: %v\n", err) diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index b2087d4660..97f6844abc 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_test.go @@ -60,8 +60,7 @@ func TestMain(m *testing.M) { exitVal := m.Run() if err := testlogger.WriterCloser.Reset(); err != nil { - fmt.Printf("testlogger.WriterCloser.Reset: %v\n", err) - os.Exit(1) + fmt.Printf("testlogger.WriterCloser.Reset: error ignored: %v\n", err) } if err = util.RemoveAll(setting.Indexer.IssuePath); err != nil { fmt.Printf("util.RemoveAll: %v\n", err) diff --git a/tests/integration/integration_test.go b/tests/integration/integration_test.go index e147d6a21b..8fd55d7fa8 100644 --- a/tests/integration/integration_test.go +++ b/tests/integration/integration_test.go @@ -184,8 +184,7 @@ func TestMain(m *testing.M) { exitCode := m.Run() if err := testlogger.WriterCloser.Reset(); err != nil { - fmt.Printf("testlogger.WriterCloser.Reset: %v\n", err) - os.Exit(1) + fmt.Printf("testlogger.WriterCloser.Reset: error ignored: %v\n", err) } if err = util.RemoveAll(setting.Indexer.IssuePath); err != nil { |