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

Commit96090b2

Browse files
committed
tests: some more fixes
1 parent6247ba4 commit96090b2

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

‎tests/page.py‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,19 +1238,22 @@ def test_multi_timeline_page(self):
12381238

12391239
node.slow_start()
12401240

1241-
pgbench=node.pgbench(options=['-T','20','-c','1','--no-vacuum'])
1241+
pgbench=node.pgbench(options=['-T','10','-c','1','--no-vacuum'])
12421242
pgbench.wait()
12431243

12441244
# create timelines
12451245
foriinrange(2,7):
12461246
node.cleanup()
12471247
self.restore_node(
12481248
backup_dir,'node',node,
1249-
options=['--recovery-target-timeline={0}'.format(i)])
1249+
options=[
1250+
'--recovery-target=latest',
1251+
'--recovery-target-action=promote',
1252+
'--recovery-target-timeline={0}'.format(i)])
12501253
node.slow_start()
12511254

12521255
# at this point there is i+1 timeline
1253-
pgbench=node.pgbench(options=['-T','10','-c','1','--no-vacuum'])
1256+
pgbench=node.pgbench(options=['-T','20','-c','1','--no-vacuum'])
12541257
pgbench.wait()
12551258

12561259
# create backup at 2, 4 and 6 timeline
@@ -1302,18 +1305,22 @@ def test_multi_timeline_page(self):
13021305
self.assertEqual(
13031306
backup_list[2]['parent-backup-id'],
13041307
backup_list[0]['id'])
1308+
self.assertEqual(backup_list[2]['current-tli'],3)
13051309

13061310
self.assertEqual(
13071311
backup_list[3]['parent-backup-id'],
13081312
backup_list[2]['id'])
1313+
self.assertEqual(backup_list[3]['current-tli'],5)
13091314

13101315
self.assertEqual(
13111316
backup_list[4]['parent-backup-id'],
13121317
backup_list[3]['id'])
1318+
self.assertEqual(backup_list[4]['current-tli'],7)
13131319

13141320
self.assertEqual(
13151321
backup_list[5]['parent-backup-id'],
13161322
backup_list[4]['id'])
1323+
self.assertEqual(backup_list[5]['current-tli'],7)
13171324

13181325
# Clean after yourself
13191326
self.del_test_dir(module_name,fname)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp