mirror of
https://github.com/go-gitea/gitea
synced 2025-07-07 19:17:21 +00:00
Use immediate queues in integration tests and ensure that immediate (#16927)
queue type is also used for unique queues. Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
@ -75,7 +75,7 @@ func CreateUniqueQueue(name string, handle HandlerFunc, exemplar interface{}) Un
|
||||
return nil
|
||||
}
|
||||
|
||||
if len(q.Type) > 0 && q.Type != "dummy" && !strings.HasPrefix(q.Type, "unique-") {
|
||||
if len(q.Type) > 0 && q.Type != "dummy" && q.Type != "immediate" && !strings.HasPrefix(q.Type, "unique-") {
|
||||
q.Type = "unique-" + q.Type
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user