From a1afebcff02cc46254bb10192f3fad94d1376860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu> Date: Thu, 1 Jun 2017 11:41:31 +0200 Subject: [PATCH] increase delay --- tests/test_backup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_backup.py b/tests/test_backup.py index 5b8a4084..09c2a66c 100755 --- a/tests/test_backup.py +++ b/tests/test_backup.py @@ -70,14 +70,15 @@ def test_backup_space(server): def check_local_backup(path): all_ok = True backup_folder = os.path.dirname(path) + print('Checking %s' % backup_folder) latest = os.path.join(backup_folder, 'latest') if os.path.exists(latest): mtime = os.path.getmtime(latest) d = datetime.fromtimestamp(mtime) now = datetime.now() diff_seconds = (now - d).total_seconds() - if diff_seconds > 25*3600: - print('Backup %s is older than a day' % backup_folder) + if diff_seconds > 48*3600: + print('Backup %s is older than 48h' % backup_folder) all_ok = False else: print('Backup %s is fine' % backup_folder) -- GitLab