diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-02-08 16:46:02 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-02-08 16:46:02 -0800 |
commit | 6b0101ea37ad9e7db3866d3ccfe8e398529f7f29 (patch) | |
tree | 655da73eeebb63a486d1e8be956d84f2d0821b42 | |
parent | 4620d6aba1c5c10344e311585516ee43819b703c (diff) | |
download | portage-6b0101ea37ad9e7db3866d3ccfe8e398529f7f29.tar.gz portage-6b0101ea37ad9e7db3866d3ccfe8e398529f7f29.tar.bz2 portage-6b0101ea37ad9e7db3866d3ccfe8e398529f7f29.zip |
IpcDaemonTestCase: init start_time earlier
Since commit 4620d6aba1c5c10344e311585516ee43819b703c, the
SequentialTaskQueue.add() method starts the task immediately, so
initialize start_time before that happens.
-rw-r--r-- | pym/portage/tests/ebuild/test_ipc_daemon.py | 4 |
1 files changed, 2 insertions, 2 deletions
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'], |