From 6e8069ec2aecf907b7c906cb51b93aa75845e3b1 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 12 Aug 2016 16:26:51 -0700 Subject: [PATCH] Shut down gearman client in tests Some tests spin up a gearman client to check on job status. That client sticks acound forever and continues to run in subsequent tests. Shut it down after use. Change-Id: I49fcad20a6bf185d27a1036dfd0d1a5cc7615307 --- nodepool/tests/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nodepool/tests/__init__.py b/nodepool/tests/__init__.py index 9887c00d8..157aafc04 100644 --- a/nodepool/tests/__init__.py +++ b/nodepool/tests/__init__.py @@ -527,6 +527,7 @@ class DBTestCase(BaseTestCase): while client.get_queued_image_jobs() > 0: time.sleep(.2) + client.shutdown() def useNodepool(self, *args, **kwargs): args = (self.secure_conf,) + args