mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-02-03 20:51:07 -05:00
`modules/queue` tests are intended to be running against a redis server in the test-remote-cacher workflow action, but they are not running because the tests always try to start a redis server by running a `redis-server` subprocess. If that subprocess fails to start, the tests are skipped. This change forces the tests to execute whenever `TEST_REDIS_SERVER` is present, and removes the unnecessary Forgejo-managed redis server during testing. This change is tested manually; if `TEST_REDIS_SERVER` is set to an invalid value, the tests fail, when previously it could be set to any value and the tests would always be skipped. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10139 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: Mathieu Fenniak <mathieu@fenniak.net> Co-committed-by: Mathieu Fenniak <mathieu@fenniak.net> |
||
|---|---|---|
| .. | ||
| lqinternal | ||
| mock | ||
| backoff.go | ||
| base.go | ||
| base_channel.go | ||
| base_channel_test.go | ||
| base_dummy.go | ||
| base_levelqueue.go | ||
| base_levelqueue_common.go | ||
| base_levelqueue_test.go | ||
| base_levelqueue_unique.go | ||
| base_redis.go | ||
| base_redis_test.go | ||
| base_redis_with_server_test.go | ||
| base_test.go | ||
| config.go | ||
| manager.go | ||
| manager_test.go | ||
| queue.go | ||
| testhelper.go | ||
| workergroup.go | ||
| workerqueue.go | ||
| workerqueue_test.go | ||