Skip to content

Commit

Permalink
fix(test): Fix use-separate-recievewal-service arg name
Browse files Browse the repository at this point in the history
  • Loading branch information
tparsa committed Oct 1, 2023
1 parent 4ca4d40 commit dd77c72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deployment/integration-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ def check_same_query_on_replica_and_master_expect_unsync(replica_host, replica_p
assert master_output != replica_output


def add_config(cluster_name, master_host, replica_slot, replica_port, use_separate_wal_receive_service=False):
def add_config(cluster_name, master_host, replica_slot, replica_port, use_separate_receivewal_service=False):
command = (f"pgkit config add --name {cluster_name} " +
f"--version 12 --host {master_host}" +
f" --port 5432 --dbname test --slot {replica_slot}" +
f" --username testuser --password test-pass" +
f" --replica-port {replica_port}"
)
if use_separate_wal_receive_service:
command += " --use-separate-wal-receive-service"
if use_separate_receivewal_service:
command += " --use-separate-receivewal-service"
subprocess.run(
command,
shell=True
Expand Down Expand Up @@ -147,7 +147,7 @@ def test_pitr_recover():
check_same_query_on_replica_and_master_expect_unsync('replica', 5433, 'master', 5432, 'test', 'testuser', "select * from persons")

subprocess.run("pgkit pitr recover pitr latest", shell=True)
sleep(5)
sleep(10)
check_same_query_on_replica_and_master_expect_sync('replica', 5433, 'master', 5432, 'test', 'testuser', "select * from persons")


Expand Down

0 comments on commit dd77c72

Please sign in to comment.