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

Commite4d1db8

Browse files
committed
tests: some fixes for ptrack
1 parent9f44901 commite4d1db8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎tests/ptrack.py‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,10 @@ def test_ptrack_disable(self):
344344
node.slow_start()
345345

346346
# ENABLE PTRACK
347-
ifnode.major_version<11:
348-
node.safe_psql('postgres',"alter system set ptrack_enable to on")
349-
else:
347+
ifnode.major_version>=12:
350348
node.safe_psql('postgres',"alter system set ptrack_map_size to '128MB'")
349+
else:
350+
node.safe_psql('postgres',"alter system set ptrack_enable to on")
351351
node.stop()
352352
node.slow_start()
353353

@@ -3966,6 +3966,10 @@ def test_ptrack_pg_resetxlog(self):
39663966
# @unittest.skip("skip")
39673967
# @unittest.expectedFailure
39683968
deftest_corrupt_ptrack_map(self):
3969+
3970+
ifself.pg_config_version<self.version_to_num('12.0'):
3971+
returnunittest.skip('You need PostgreSQL >= 12 for this test')
3972+
39693973
fname=self.id().split('.')[3]
39703974
node=self.make_simple_node(
39713975
base_dir=os.path.join(module_name,fname,'node'),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp