From 6b0101ea37ad9e7db3866d3ccfe8e398529f7f29 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 8 Feb 2012 16:46:02 -0800 Subject: IpcDaemonTestCase: init start_time earlier Since commit 4620d6aba1c5c10344e311585516ee43819b703c, the SequentialTaskQueue.add() method starts the task immediately, so initialize start_time before that happens. --- pym/portage/tests/ebuild/test_ipc_daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/portage/tests/ebuild/test_ipc_daemon.py') 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'], -- cgit v1.2.3-65-gdbad