Switch another test to the adoption method

This commit is contained in:
Jean-Paul Calderone 2018-05-23 10:47:30 -04:00
parent 277cd16594
commit 711d63960d
1 changed files with 2 additions and 2 deletions

View File

@ -432,8 +432,8 @@ class SystemTest(SystemTestMixin, unittest.TestCase):
#tub.setOption("logRemoteFailures", True)
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)
log.msg("creating client %d: %s" % (i, tub.getShortTubID()))