From beebdf29317a8df4fcfabd0ee4f01cb7eb6247d3 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 9 Jan 2017 09:07:29 -0500 Subject: Bump up stale lock expiration date. Hopefully this will help fix intermittent failures on the Gitlab CI runners. 2 minutes appears to be too short since the MySQL tests can take longer than that to get to the lock claim attempt. --- src/mailman/commands/tests/test_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mailman/commands/tests/test_control.py b/src/mailman/commands/tests/test_control.py index f93202820..473e78363 100644 --- a/src/mailman/commands/tests/test_control.py +++ b/src/mailman/commands/tests/test_control.py @@ -180,7 +180,7 @@ class TestStart(unittest.TestCase): with open(config.LOCK_FILE, 'w') as fp: fp.write(claim_file) os.link(config.LOCK_FILE, claim_file) - expiration_date = datetime.now() - timedelta(minutes=2) + expiration_date = datetime.now() - timedelta(minutes=60) t = time.mktime(expiration_date.timetuple()) os.utime(claim_file, (t, t)) # Start without --force; no master will be running. -- cgit v1.2.3-70-g09d2