time_remaining = time_remaining - 1
msg, env = self.cc_session.group_recvmsg()
- # wait_time is set to 0 only by unittests
- if self.wait_time > 0 and not self.process_running(msg,
- "ConfigManager"):
+ if not self.process_running(msg, "ConfigManager") and \
+ not self.run_under_unittests:
raise ProcessStartError("Configuration manager process has not started")
return bind_cfgd
bob = MockBobSimple()
bob.c_channel_env = {}
bob.cc_session = DummySession()
- bob.wait_time = 0
+ bob.run_under_unittests = True
# use the MockProcessInfo creator
bob._make_process_info = bob._make_mock_process_info
bob = MockBobSimple()
bob.c_channel_env = {}
bob.cc_session = DummySession()
+ # keep the wait time small for the test to complete quickly
bob.wait_time = 2
+ # specifically set this to False so that the process check is
+ # attempted
+ bob.run_under_unittests = False
# use the MockProcessInfo creator
bob._make_process_info = bob._make_mock_process_info