Fix check_controller_pod_status_for_time_period()

The method has the status parameter but then it's not being used
to compare with the obtained status, as 'Running' is always used.

This change replaces the hardcoded status with the status parameter.

Change-Id: I7c716dd11f4ed14a31fd5d5aa4706db136cbbeed
This commit is contained in:
Jon Uriarte 2022-01-05 16:28:56 +00:00
parent 804a54584e
commit f79bb312b9
1 changed files with 1 additions and 1 deletions

View File

@ -1257,7 +1257,7 @@ class BaseKuryrScenarioTest(manager.NetworkScenarioTest):
while retry_attempts != 0:
time.sleep(time_between_attempts)
for controller_pod in self.get_controller_pod_names():
self.assertEqual("Running", self.get_pod_status(
self.assertEqual(status, self.get_pod_status(
controller_pod,
CONF.kuryr_kubernetes.kube_system_namespace),
'Kuryr controller is not in the %s state' % status