mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-12 23:31:48 +08:00
fix(admin): exit dev test queue producer loop when context is cancelled (#38451)
Co-authored-by: Kadajett <jeremy@semfora.ai>
This commit is contained in:
@@ -56,6 +56,7 @@ func initTestQueueOnce() {
|
|||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
|
return
|
||||||
case <-time.After(500 * time.Millisecond):
|
case <-time.After(500 * time.Millisecond):
|
||||||
if adding {
|
if adding {
|
||||||
if testQueue.GetQueueItemNumber() == qs.Length {
|
if testQueue.GetQueueItemNumber() == qs.Length {
|
||||||
|
|||||||
Reference in New Issue
Block a user