From: Patrick Donnelly Date: Wed, 4 Dec 2019 14:50:56 +0000 (-0800) Subject: qa: improve variable name X-Git-Tag: v15.1.0~662^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4e166338561b924cc73242334184d24074e036f8;p=ceph.git qa: improve variable name Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/cephfs/cephfs_test_case.py b/qa/tasks/cephfs/cephfs_test_case.py index 3349cd17ac8c..6419d9044da2 100644 --- a/qa/tasks/cephfs/cephfs_test_case.py +++ b/qa/tasks/cephfs/cephfs_test_case.py @@ -229,13 +229,13 @@ class CephFSTestCase(CephTestCase): 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): """