@@ -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 for i in range (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