From: Zac Medico Date: Thu, 9 Feb 2012 00:46:02 +0000 (-0800) Subject: IpcDaemonTestCase: init start_time earlier X-Git-Tag: v2.2.0_alpha86~37 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b0101ea37ad9e7db3866d3ccfe8e398529f7f29;p=portage.git IpcDaemonTestCase: init start_time earlier Since commit 4620d6aba1c5c10344e311585516ee43819b703c, the SequentialTaskQueue.add() method starts the task immediately, so initialize start_time before that happens. --- diff --git a/pym/portage/tests/ebuild/test_ipc_daemon.py b/pym/portage/tests/ebuild/test_ipc_daemon.py index c63843792..edfc058d7 100644 --- a/pym/portage/tests/ebuild/test_ipc_daemon.py +++ b/pym/portage/tests/ebuild/test_ipc_daemon.py @@ -75,9 +75,9 @@ class IpcDaemonTestCase(TestCase): daemon.cancel() exit_command.reply_hook = exit_command_callback + start_time = time.time() task_scheduler.add(daemon) task_scheduler.add(proc) - start_time = time.time() task_scheduler.run(timeout=self._SCHEDULE_TIMEOUT) task_scheduler.clear() hardlock_cleanup(env['PORTAGE_BUILDDIR'], @@ -112,9 +112,9 @@ class IpcDaemonTestCase(TestCase): daemon.cancel() exit_command.reply_hook = exit_command_callback + start_time = time.time() task_scheduler.add(daemon) task_scheduler.add(proc) - start_time = time.time() task_scheduler.run(timeout=short_timeout_ms) task_scheduler.clear() hardlock_cleanup(env['PORTAGE_BUILDDIR'],