Switch another test to the adoption method

This commit is contained in:
Jean-Paul Calderone 2018-05-23 10:47:41 -04:00
parent 711d63960d
commit 62836b6858

View File

@ -913,8 +913,8 @@ class NonV1Server(SystemTestMixin, unittest.TestCase):
tub = Tub()
tub.setOption("expose-remote-exception-types", False)
tub.setServiceParent(self.parent)
portnum = iputil.allocate_tcp_port()
tub.listenOn("tcp:%d" % portnum)
portnum, endpoint = foolscapEndpointForPortNumber(None)
tub.listenOn(endpoint)
tub.setLocation("localhost:%d" % portnum)
c = IntroducerClient(tub, self.introducer_furl,