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
This commit is contained in:
Clint Byrum 2016-12-14 11:39:54 -08:00
parent 8953efd281
commit ee0786dd8b
1 changed files with 0 additions and 15 deletions

View File

@ -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: