From ee0786dd8b4ba38de3b298bd06d17113a8844bab Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Wed, 14 Dec 2016 11:39:54 -0800 Subject: [PATCH] Remove now-unused ZuulTestCase.resetGearmanServer This was used in only one test and it isn't in use anymore and is thus untested, dead code. Change-Id: Iff8c235583424a45926f273a88838d908381e237 --- tests/base.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/base.py b/tests/base.py index 6d2c64d8b7..603fba3e8e 100755 --- a/tests/base.py +++ b/tests/base.py @@ -1305,21 +1305,6 @@ class ZuulTestCase(BaseTestCase): parameters = json.loads(job.arguments) return parameters[name] - def resetGearmanServer(self): - self.launch_server.worker.setFunctions([]) - while True: - done = True - for connection in self.gearman_server.active_connections: - if (connection.functions and - connection.client_id not in ['Zuul RPC Listener', - 'Zuul Merger']): - done = False - if done: - break - time.sleep(0) - self.gearman_server.functions = set() - self.rpc.register() - def haveAllBuildsReported(self): # See if Zuul is waiting on a meta job to complete if self.launch_client.meta_jobs: