def setUp(self): super(TestSimpleInterfaceMonitor, self).setUp() self.monitor = ovsdb_monitor.SimpleInterfaceMonitor() self.addCleanup(self.monitor.stop) # In case a global test timeout isn't set or disabled, use a # value that will ensure the monitor has time to start. timeout = max(tests_base.get_test_timeout(), 60) self.monitor.start(block=True, timeout=timeout)