Quick fix on message receiver
This patch fixes message receiver by changing subscription ttl to a proper value. The current value is too large to be accepted by Zaqar. Change-Id: I4ec5dd28521bf2cc2d5ccfa6672ff228cb50af99
This commit is contained in:
parent
ace8a2a6fe
commit
2bae36fee3
|
@ -128,7 +128,7 @@ class Message(base.Receiver):
|
|||
# subscription that never expires, we specify a very large
|
||||
# ttl value which doesn't exceed the max time of python.
|
||||
kwargs = {
|
||||
"ttl": 2 ** 64,
|
||||
"ttl": 2 ** 36,
|
||||
"subscriber": subscriber,
|
||||
"options": {
|
||||
"trust_id": trust_id
|
||||
|
|
|
@ -207,7 +207,7 @@ class TestMessage(base.SenlinTestCase):
|
|||
message = mmod.Message('message', None, None, id=UUID)
|
||||
queue_name = 'test-queue'
|
||||
kwargs = {
|
||||
"ttl": 2 ** 64,
|
||||
"ttl": 2 ** 36,
|
||||
"subscriber": subscriber,
|
||||
"options": {
|
||||
"trust_id": "123abc"
|
||||
|
@ -235,7 +235,7 @@ class TestMessage(base.SenlinTestCase):
|
|||
message.id = UUID
|
||||
queue_name = 'test-queue'
|
||||
kwargs = {
|
||||
"ttl": 2 ** 64,
|
||||
"ttl": 2 ** 36,
|
||||
"subscriber": subscriber,
|
||||
"options": {
|
||||
"trust_id": "123abc"
|
||||
|
|
Loading…
Reference in New Issue