From a9c17f0e841d23e4d2f5af52bb4cd84e5fcdfb60 Mon Sep 17 00:00:00 2001 From: AarDG10 Date: Fri, 7 Nov 2025 12:39:35 +0530 Subject: [PATCH] test(postgres): add delay in test_backup_no_options to avoid same-second timestamp collision --- frappe/commands/test_commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/commands/test_commands.py b/frappe/commands/test_commands.py index 94228e1a80..002cbfe6bc 100644 --- a/frappe/commands/test_commands.py +++ b/frappe/commands/test_commands.py @@ -659,6 +659,7 @@ class TestBackups(BaseTestCommands): def test_backup_no_options(self): """Take a backup without any options""" before_backup = fetch_latest_backups(partial=True) + time.sleep(1) self.execute("bench --site {site} backup") after_backup = fetch_latest_backups(partial=True)