@@ -1460,9 +1460,9 @@ def test_retention_redundancy_overlapping_chains(self):
14601460 # Clean after yourself
14611461 self .del_test_dir (module_name , fname )
14621462
1463- def test_agressive_retention_window_purge (self ):
1463+ def test_wal_purge_victim (self ):
14641464 """
1465- https://github.com/postgrespro/pg_probackup/issues/106
1465+ https://github.com/postgrespro/pg_probackup/issues/103
14661466 """
14671467 fname = self .id ().split ('.' )[3 ]
14681468 node = self .make_simple_node (
@@ -1472,6 +1472,7 @@ def test_agressive_retention_window_purge(self):
14721472 backup_dir = os .path .join (self .tmp_path , module_name , fname , 'backup' )
14731473 self .init_pb (backup_dir )
14741474 self .add_instance (backup_dir , 'node' , node )
1475+ self .set_archiving (backup_dir , 'node' , node )
14751476 node .slow_start ()
14761477
14771478 # Make ERROR incremental backup
@@ -1496,12 +1497,7 @@ def test_agressive_retention_window_purge(self):
14961497 sleep (1 )
14971498
14981499 # Make FULL backup
1499- self .backup_node (
1500- backup_dir , 'node' , node ,
1501- options = ['--delete-expired' , '--retention-window=1' , '--stream' ])
1502-
1503- # Check number of backups
1504- self .assertEqual (len (self .show_pb (backup_dir , 'node' )), 2 )
1500+ self .backup_node (backup_dir , 'node' , node , options = ['--delete-wal' ])
15051501
15061502 # Clean after yourself
15071503 self .del_test_dir (module_name , fname )
0 commit comments