]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_web: avoid IP autodetection, was causing dirty reactor
authorBrian Warner <warner@lothar.com>
Mon, 13 Jul 2015 01:20:43 +0000 (18:20 -0700)
committerBrian Warner <warner@lothar.com>
Mon, 13 Jul 2015 01:20:43 +0000 (18:20 -0700)
src/allmydata/test/test_web.py

index 1f46cbf9cb2ed17bdac3da839cc82fd87c584223..723ae7ac604e6f494762e9f10d95fcf539002e25 100644 (file)
@@ -4415,7 +4415,11 @@ class IntroducerWeb(unittest.TestCase):
     def test_welcome(self):
         basedir = "web.IntroducerWeb.test_welcome"
         os.mkdir(basedir)
-        fileutil.write(os.path.join(basedir, "tahoe.cfg"), "[node]\nweb.port = tcp:0\n")
+        cfg = "\n".join(["[node]",
+                         "tub.location = 127.0.0.1:1",
+                         "web.port = tcp:0",
+                         ]) + "\n"
+        fileutil.write(os.path.join(basedir, "tahoe.cfg"), cfg)
         self.node = IntroducerNode(basedir)
         self.ws = self.node.getServiceNamed("webish")