From 1464a2afbeb37bea2d3a01225e8d8910fecde2a4 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Thu, 8 Dec 2016 17:06:12 -0800 Subject: [PATCH] Redis: Fixes priority tests --- t/unit/transport/test_redis.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/unit/transport/test_redis.py b/t/unit/transport/test_redis.py index dcfcc584..0e4581e8 100644 --- a/t/unit/transport/test_redis.py +++ b/t/unit/transport/test_redis.py @@ -573,19 +573,19 @@ class test_Channel: self.channel._put('george', msg1) 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}} self.channel._put('george', msg2) 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': {}} self.channel._put('george', msg3) 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):