From f5627a498e4e46f5480b38020f8a23194314285e Mon Sep 17 00:00:00 2001 From: Josh Berkus Date: Thu, 3 Sep 2015 18:41:30 -0700 Subject: [PATCH] Fixed test_postgresql.py to include use_slots. --- README.md | 2 +- tests/test_postgresql.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cfa141f5..345c12c3 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ For an example file, see `postgres0.yml`. Below is an explanation of settings: * *connect_address*: ip address + port through which Postgres is accessible from other nodes and applications. * *data_dir*: file path to initialize and store Postgres data files * *maximum_lag_on_failover*: the maximum bytes a follower may lag before it is not eligible become leader - * *use_slots*: whether or not to use replication_slots. Must be False for PostgreSQL 9.3. + * *use_slots*: whether or not to use replication_slots. Must be False for PostgreSQL 9.3, and you should comment out max_replication_slots. * *pg_hba*: list of lines which should be added to pg_hba.conf * *- host all all 0.0.0.0/0 md5* * *replication* diff --git a/tests/test_postgresql.py b/tests/test_postgresql.py index c4a3d6df..882886df 100644 --- a/tests/test_postgresql.py +++ b/tests/test_postgresql.py @@ -114,6 +114,7 @@ class TestPostgresql(unittest.TestCase): 'pg_hba': ['hostssl all all 0.0.0.0/0 md5', 'host all all 0.0.0.0/0 md5'], 'superuser': {'password': ''}, 'admin': {'username': 'admin', 'password': 'admin'}, + 'use_slots' : True, 'replication': {'username': 'replicator', 'password': 'rep-pass', 'network': '127.0.0.1/32'},