Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Fix middleware test assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerith committed Nov 19, 2013
1 parent 3b34993 commit b106db6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/vumitools/tests/test_middleware.py
Expand Up @@ -313,7 +313,8 @@ def test_expiry(self):
yield mw.handle_inbound(msg1, 'dummy_endpoint')
key = mw.key('dummy_endpoint', msg1['message_id'])
ttl = yield mw.redis.ttl(key)
self.assertTrue(0 < ttl < 10)
self.assertTrue(
0 < ttl <= 10, "Expected 0 < ttl <= 10, found: %r" % (ttl,))


class ConversationStoringMiddlewareTestCase(MiddlewareTestCase):
Expand Down

0 comments on commit b106db6

Please sign in to comment.