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:
parent
804a54584e
commit
f79bb312b9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue