Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit15b1ad7

Browse files
authored
Merge pull request#535 from postgrespro/REL_2_5-PBCKP-277
[PBCKP-277] stabilize catchup.CatchupTest.test_config_exclusion
2 parents9323e34 +996ee2b commit15b1ad7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎.travis.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ notifications:
2727
# Default MODE is basic, i.e. all tests with PG_PROBACKUP_TEST_BASIC=ON
2828
env:
2929
-PG_VERSION=15 PG_BRANCH=master PTRACK_PATCH_PG_BRANCH=master
30-
-PG_VERSION=15 PG_BRANCH=REL_15_STABLE PTRACK_PATCH_PG_BRANCH=REL_15_STABLE
3130
-PG_VERSION=14 PG_BRANCH=REL_14_STABLE PTRACK_PATCH_PG_BRANCH=REL_14_STABLE
3231
-PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=REL_13_STABLE
3332
-PG_VERSION=12 PG_BRANCH=REL_12_STABLE PTRACK_PATCH_PG_BRANCH=REL_12_STABLE

‎tests/catchup.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,6 +1362,7 @@ def test_config_exclusion(self):
13621362
dst_options= {}
13631363
dst_options['port']=str(dst_pg.port)
13641364
self.set_auto_conf(dst_pg,dst_options)
1365+
dst_pg._assign_master(src_pg)
13651366
dst_pg.slow_start(replica=True)
13661367
dst_pg.stop()
13671368

@@ -1390,6 +1391,7 @@ def test_config_exclusion(self):
13901391
# check: run verification query
13911392
src_pg.safe_psql("postgres","INSERT INTO ultimate_question VALUES(42)")
13921393
src_query_result=src_pg.safe_psql("postgres","SELECT * FROM ultimate_question")
1394+
dst_pg.catchup()# wait for replication
13931395
dst_query_result=dst_pg.safe_psql("postgres","SELECT * FROM ultimate_question")
13941396
self.assertEqual(src_query_result,dst_query_result,'Different answer from copy')
13951397

@@ -1419,6 +1421,7 @@ def test_config_exclusion(self):
14191421
# check: run verification query
14201422
src_pg.safe_psql("postgres","INSERT INTO ultimate_question VALUES(2*42)")
14211423
src_query_result=src_pg.safe_psql("postgres","SELECT * FROM ultimate_question")
1424+
dst_pg.catchup()# wait for replication
14221425
dst_query_result=dst_pg.safe_psql("postgres","SELECT * FROM ultimate_question")
14231426
self.assertEqual(src_query_result,dst_query_result,'Different answer from copy')
14241427

@@ -1447,6 +1450,7 @@ def test_config_exclusion(self):
14471450
# check: run verification query
14481451
src_pg.safe_psql("postgres","INSERT INTO ultimate_question VALUES(3*42)")
14491452
src_query_result=src_pg.safe_psql("postgres","SELECT * FROM ultimate_question")
1453+
dst_pg.catchup()# wait for replication
14501454
dst_query_result=dst_pg.safe_psql("postgres","SELECT * FROM ultimate_question")
14511455
self.assertEqual(src_query_result,dst_query_result,'Different answer from copy')
14521456

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp