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:
Frode Nordahl
2020-09-16 12:04:42 +02:00
parent 8a8178738d
commit c5a3f832d0

View File

@@ -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(