forgejo/modules/queue
Mathieu Fenniak 20f8572b92 test: fix modules/queue tests to use TEST_REDIS_SERVER when present (#10139)
`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>
2025-11-16 21:51:32 +01:00
..
lqinternal Help to recover from corrupted levelqueue (#24912) 2023-05-29 10:52:32 +08:00
mock Update module go.uber.org/mock to v0.5.1 (forgejo) (#7488) 2025-04-08 11:11:21 +00:00
backoff.go Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
base.go Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
base_channel.go fix: reduce deadlocks merging PRs w/ async label stat recalcs (#9868) 2025-10-31 02:12:36 +01:00
base_channel_test.go Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
base_dummy.go Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
base_levelqueue.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
base_levelqueue_common.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
base_levelqueue_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
base_levelqueue_unique.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
base_redis.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
base_redis_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
base_redis_with_server_test.go test: fix modules/queue tests to use TEST_REDIS_SERVER when present (#10139) 2025-11-16 21:51:32 +01:00
base_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
config.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
manager.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
manager_test.go chore: QoL improvements to tests (#7917) 2025-05-21 15:45:56 +02:00
queue.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
testhelper.go Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
workergroup.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
workerqueue.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
workerqueue_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00