diff options
-rw-r--r-- | python/qpid/tests/messaging/message.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/qpid/tests/messaging/message.py b/python/qpid/tests/messaging/message.py index 930c031abb..2f2acc13c3 100644 --- a/python/qpid/tests/messaging/message.py +++ b/python/qpid/tests/messaging/message.py @@ -77,7 +77,10 @@ class MessageEchoTests(Base): assert msg.correlation_id == echo.correlation_id assert msg.durable == echo.durable assert msg.priority == echo.priority - assert msg.ttl == echo.ttl + if msg.ttl is None: + assert echo.ttl is None + else: + assert msg.ttl >= echo.ttl assert msg.properties == echo.properties assert msg.content_type == echo.content_type assert msg.content == echo.content, "%s, %s" % (msg, echo) |