-
Notifications
You must be signed in to change notification settings - Fork 17
Wrong requeue order test #10
Copy link
Copy link
Open
Description
It seems checking requeue order has logical problem.
ubroker/internal/broker/core_test.go
Line 248 in cb32497
| s.Equal(messages[2].Message.Body, (<-delivery).Message.Body) |
If we consume after publishing queue is like
(front of queue) 1 2 3 (back of queue), requeue in order of 3 2 1 should results in this way:
| requeue item | queue |
|---|---|
| 3 | 3 |
| 2 | 2 3 |
| 1 | 1 2 3 |
But this function test it in wrong order. (3 2 1)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels