mirror of https://github.com/celery/kombu.git
Redis: Fixes priority tests
This commit is contained in:
parent
9c1044ef3a
commit
1464a2afbe
|
@ -573,19 +573,19 @@ class test_Channel:
|
||||||
|
|
||||||
self.channel._put('george', msg1)
|
self.channel._put('george', msg1)
|
||||||
client().lpush.assert_called_with(
|
client().lpush.assert_called_with(
|
||||||
self.channel._q_for_pri('george', 6), dumps(msg1),
|
self.channel._q_for_pri('george', 3), dumps(msg1),
|
||||||
)
|
)
|
||||||
|
|
||||||
msg2 = {'properties': {'priority': 313}}
|
msg2 = {'properties': {'priority': 313}}
|
||||||
self.channel._put('george', msg2)
|
self.channel._put('george', msg2)
|
||||||
client().lpush.assert_called_with(
|
client().lpush.assert_called_with(
|
||||||
self.channel._q_for_pri('george', 0), dumps(msg2),
|
self.channel._q_for_pri('george', 9), dumps(msg2),
|
||||||
)
|
)
|
||||||
|
|
||||||
msg3 = {'properties': {}}
|
msg3 = {'properties': {}}
|
||||||
self.channel._put('george', msg3)
|
self.channel._put('george', msg3)
|
||||||
client().lpush.assert_called_with(
|
client().lpush.assert_called_with(
|
||||||
self.channel._q_for_pri('george', 9), dumps(msg3),
|
self.channel._q_for_pri('george', 0), dumps(msg3),
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_delete(self):
|
def test_delete(self):
|
||||||
|
|
Loading…
Reference in New Issue