Keep only latest failed data directory (#2471)

Use constant postfix when moving data directory due to failure so it only keeps data from the latest failure.
This commit is contained in:
William Albertus Dembo
2023-01-19 21:47:41 +01:00
committed by GitHub
parent 838653325a
commit f06d432dab
2 changed files with 12 additions and 4 deletions
+2
View File
@@ -438,6 +438,8 @@ class TestPostgresql(BaseTestPostgresql):
self.assertTrue(self.p.stop())
@patch('os.rename', Mock())
@patch('os.path.exists', Mock(return_value=True))
@patch('shutil.rmtree', Mock())
@patch('os.path.isdir', Mock(return_value=True))
@patch('os.unlink', Mock())
@patch('os.symlink', Mock())