summaryrefslogtreecommitdiff
path: root/tests/unit/rpc/test_matchmaker_redis.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/rpc/test_matchmaker_redis.py')
-rw-r--r--tests/unit/rpc/test_matchmaker_redis.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/rpc/test_matchmaker_redis.py b/tests/unit/rpc/test_matchmaker_redis.py
index 9ebd677d..492b560f 100644
--- a/tests/unit/rpc/test_matchmaker_redis.py
+++ b/tests/unit/rpc/test_matchmaker_redis.py
@@ -121,6 +121,12 @@ class MatchMakerRedisHeartbeatTestCase(test.BaseTestCase,
# Tests that host is removed from results
self.assertEqual(self.driver.queues(self.topic), [])
+ def test_ack_alive(self):
+ self.driver.ack_alive('ack_alive', 'controller1')
+ self.assertEqual(
+ sorted(self.driver.redis.smembers('ack_alive')),
+ ['ack_alive.controller1'])
+
class MatchMakerRedisTestCase(test.BaseTestCase):
"""Generic tests that do not require a Redis server."""