Skip to content

Commit

Permalink
qa: improve variable name
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
  • Loading branch information
batrick committed Feb 6, 2020
1 parent 5e1d712 commit 9e11deb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qa/tasks/cephfs/cephfs_test_case.py
Expand Up @@ -230,13 +230,13 @@ def _session_by_id(self, session_ls):
return dict([(s['id'], s) for s in session_ls])

def wait_until_evicted(self, client_id, timeout=30):
def helper():
def is_client_evicted():
ls = self._session_list()
for s in ls:
if s['id'] == client_id:
return False
return True
self.wait_until_true(lambda: helper(), timeout)
self.wait_until_true(is_client_evicted, timeout)

def wait_for_daemon_start(self, daemon_ids=None):
"""
Expand Down

0 comments on commit 9e11deb

Please sign in to comment.