From 4032d28780c96ec6e395573ab34ea3fd19f001f2 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Thu, 28 Apr 2016 10:15:35 +0200 Subject: [PATCH] [backend] Wait more for job completion - sqlite does not implement select_for_update() --- beat/web/backend/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beat/web/backend/tests.py b/beat/web/backend/tests.py index 45c302327..936ca5c93 100644 --- a/beat/web/backend/tests.py +++ b/beat/web/backend/tests.py @@ -2596,7 +2596,7 @@ class WorkingExternally(TransactionTestCase): # actually runs the job (non-blocking) work(self.environments, self.cpulimit, self.process, self.settings) - time.sleep(1) #so the job starts + time.sleep(5) #wait till done (sqlite doesn't impl. select_for_update()) # cancels the experiment xp.cancel() @@ -2605,7 +2605,7 @@ class WorkingExternally(TransactionTestCase): # launch another working cycle to kill the process work(self.environments, self.cpulimit, self.process, self.settings) - time.sleep(1) + time.sleep(5) #wait till done (sqlite doesn't impl. select_for_update()) xp.refresh_from_db() # assert we have no database traces after the last block is done -- GitLab