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:
parent
219dec030d
commit
6c125e9797
6 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue