Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Elad Ben Aharon <ebenahar@redhat.com>
  • Loading branch information
ebenahar committed Nov 2, 2020
1 parent 20e6d0d commit 5053579
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2989,7 +2989,7 @@ def get_ready_noobaa_endpoint_count(namespace):
ready_count = 0
for ep_info in pods_info:
container_statuses = ep_info.get('status', {}).get('containerStatuses')
if container_statuses:
if container_statuses and container_statuses is not []:
if container_statuses[0].get('ready'):
ready_count += 1
return ready_count
Expand All @@ -3012,7 +3012,6 @@ def nb_ensure_endpoint_count(request):
if float(config.ENV_DATA['ocs_version']) < 4.6:
noobaa = OCP(kind='noobaa', namespace=namespace)
resource = noobaa.get()['items'][0]
resource_name = resource['metadata']['name']
endpoints = resource.get('spec', {}).get('endpoints', {})

if endpoints.get('minCount', -1) != min_ep_count:
Expand Down

0 comments on commit 5053579

Please sign in to comment.