test_runner.RunNode: pass an explicit webport, to avoid using 8123 (which might be in used by a running node). Closes #175.

This commit is contained in:
Brian Warner 2007-10-13 16:06:39 -07:00
parent 7cb41f4eaa
commit 07b03bd55b

View File

@ -108,7 +108,7 @@ class RunNode(unittest.TestCase, testutil.PollMixin):
raise unittest.SkipTest("twistd does not fork under windows")
basedir = self.workdir("test_client")
c1 = os.path.join(basedir, "c1")
argv = ["--quiet", "create-client", "--basedir", c1]
argv = ["--quiet", "create-client", "--basedir", c1, "--webport", "0"]
out,err = StringIO(), StringIO()
rc = runner.runner(argv, stdout=out, stderr=err)
self.failUnlessEqual(rc, 0)