launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #25111
[Merge] ~pappacena/launchpad:testfix-ocibuild-proxy-cleanup into launchpad:master
Thiago F. Pappacena has proposed merging ~pappacena/launchpad:testfix-ocibuild-proxy-cleanup into launchpad:master.
Commit message:
Cleaning up proxy pool on oci_recipebuildbehaviour tests
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/388663
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~pappacena/launchpad:testfix-ocibuild-proxy-cleanup into launchpad:master.
diff --git a/lib/lp/oci/tests/test_ocirecipebuildbehaviour.py b/lib/lp/oci/tests/test_ocirecipebuildbehaviour.py
index 10e0139..a4b2fa4 100644
--- a/lib/lp/oci/tests/test_ocirecipebuildbehaviour.py
+++ b/lib/lp/oci/tests/test_ocirecipebuildbehaviour.py
@@ -80,6 +80,7 @@ from lp.services.features.testing import FeatureFixture
from lp.services.log.logger import DevNullLogger
from lp.services.propertycache import get_property_cache
from lp.services.webapp import canonical_url
+from lp.snappy.model.snapbuildbehaviour import proxy_pool
from lp.soyuz.adapters.archivedependencies import (
get_sources_list_for_building,
)
@@ -122,6 +123,7 @@ class MakeOCIBuildMixin:
slave = self.useFixture(SlaveTestHelpers()).getClientSlave()
job.setBuilder(builder, slave)
self.addCleanup(slave.pool.closeCachedConnections)
+ self.addCleanup(proxy_pool(slave.reactor).closeCachedConnections)
self.addCleanup(shut_down_default_process_pool)
# Taken from test_archivedependencies.py