test_utils/config_change: Wait for agent to start executing
Avoid returning prior to the config change has even started. Fixes: #419
This commit is contained in:
@@ -267,6 +267,9 @@ class BaseCharmTest(unittest.TestCase):
|
||||
self._stringed_value_config(default_config),
|
||||
model_name=self.model_name)
|
||||
|
||||
logging.debug(
|
||||
'Waiting for units to execute config-changed hook')
|
||||
model.wait_for_agent_status(model_name=self.model_name)
|
||||
logging.debug(
|
||||
'Waiting for units to reach target states')
|
||||
model.wait_for_application_states(
|
||||
|
||||
Reference in New Issue
Block a user