From 9e11deb5d5a8312ebe324969ac6ef425b8cb12dc Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Wed, 4 Dec 2019 06:50:56 -0800 Subject: [PATCH] qa: improve variable name Signed-off-by: Patrick Donnelly --- qa/tasks/cephfs/cephfs_test_case.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/tasks/cephfs/cephfs_test_case.py b/qa/tasks/cephfs/cephfs_test_case.py index 89259342b0d..66023fd8ba3 100644 --- a/qa/tasks/cephfs/cephfs_test_case.py +++ b/qa/tasks/cephfs/cephfs_test_case.py @@ -230,13 +230,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): """ -- 2.47.3