autotest/autotest — Issue #58: Virt: Turn timeout values into variable definitions
Author: clebergnu
Created: 2011-11-04 14:31:49+00:00
State: open
Labels: virt

Currently we have lots of timeouts set, for example in the kvm_monitor code, with plain values:

def _acquire_lock(self, timeout=20):
...

def _data_available(self, timeout=0):
...

Turn those into global (module scope) variable definition for better documentation and easier tracking, example:

MONITOR_LOCK_TIMEOUT = 20
MONITOR_DATA_TIMEOUT = 0

def _acquire_lock(self, timeout=MONITOR_LOCK_TIMEOUT):
...

def _data_available(self, timeout=MONITOR_DATA_TIMEOUT):
...