@@ -1238,19 +1238,22 @@ def test_multi_timeline_page(self):
12381238
12391239node .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' ])
12421242pgbench .wait ()
12431243
12441244# create timelines
12451245for i in range (2 ,7 ):
12461246node .cleanup ()
12471247self .restore_node (
12481248backup_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 )])
12501253node .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' ])
12541257pgbench .wait ()
12551258
12561259# create backup at 2, 4 and 6 timeline
@@ -1302,18 +1305,22 @@ def test_multi_timeline_page(self):
13021305self .assertEqual (
13031306backup_list [2 ]['parent-backup-id' ],
13041307backup_list [0 ]['id' ])
1308+ self .assertEqual (backup_list [2 ]['current-tli' ],3 )
13051309
13061310self .assertEqual (
13071311backup_list [3 ]['parent-backup-id' ],
13081312backup_list [2 ]['id' ])
1313+ self .assertEqual (backup_list [3 ]['current-tli' ],5 )
13091314
13101315self .assertEqual (
13111316backup_list [4 ]['parent-backup-id' ],
13121317backup_list [3 ]['id' ])
1318+ self .assertEqual (backup_list [4 ]['current-tli' ],7 )
13131319
13141320self .assertEqual (
13151321backup_list [5 ]['parent-backup-id' ],
13161322backup_list [4 ]['id' ])
1323+ self .assertEqual (backup_list [5 ]['current-tli' ],7 )
13171324
13181325# Clean after yourself
13191326self .del_test_dir (module_name ,fname )