Skip to content

Commit

Permalink
fix(test): Add 10 sec sleep before running recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
tparsa committed Oct 1, 2023
1 parent e6be382 commit 3f117dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deployment/integration-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ def test_pitr_recover():
check_same_query_on_replica_and_master_expect_sync('replica', 5433, 'master', 5432, 'test', 'testuser', "select * from persons")
check_successful_insert('master', 5432, 'test', 'testuser', 3, 'Eleven', 'Eleven', 15)
check_same_query_on_replica_and_master_expect_unsync('replica', 5433, 'master', 5432, 'test', 'testuser', "select * from persons")


sleep(10)
subprocess.run("pgkit pitr recover pitr latest", shell=True)
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 3f117dc

Please sign in to comment.