From c15c13876a4d644683c0e5a74f9601c4193b6334 Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Fri, 15 Apr 2016 10:08:31 +0200 Subject: [PATCH] HA tests assume the default role as replica. --- tests/test_ha.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_ha.py b/tests/test_ha.py index 64b4d7c5..3071ecc8 100644 --- a/tests/test_ha.py +++ b/tests/test_ha.py @@ -91,6 +91,7 @@ class TestHa(unittest.TestCase): 'data_dir': 'data/postgresql0', 'superuser': {}, 'admin': {}, 'replication': {'username': '', 'password': '', 'network': ''}}) self.p.set_state('running') + self.p.set_role('replica') self.p.check_replication_lag = true self.p.can_create_replica_without_replication_connection = MagicMock(return_value=False) self.e = Etcd('foo', {'ttl': 30, 'host': 'ok:2379', 'scope': 'test'})