test_introducer.ClientSeqnums: disable storage

This test was depending upon the storage announcement happening *after*
startup, but the upcoming synchronous-Tub-startup change will modify the
ordering. Fix it in both cases by disabling storage in the client being
tested.
This commit is contained in:
Brian Warner 2016-04-26 18:38:21 -07:00
parent 1f6c04518e
commit 7637d70f1b

View File

@ -1014,10 +1014,17 @@ class ClientSeqnums(unittest.TestCase):
def test_client(self): def test_client(self):
basedir = "introducer/ClientSeqnums/test_client" basedir = "introducer/ClientSeqnums/test_client"
fileutil.make_dirs(basedir) fileutil.make_dirs(basedir)
# if storage is enabled, the Client will publish its storage server
# during startup (although the announcement will wait in a queue
# until the introducer connection is established). To avoid getting
# confused by this, disable storage.
f = open(os.path.join(basedir, "tahoe.cfg"), "w") f = open(os.path.join(basedir, "tahoe.cfg"), "w")
f.write("[client]\n") f.write("[client]\n")
f.write("introducer.furl = nope\n") f.write("introducer.furl = nope\n")
f.write("[storage]\n")
f.write("enabled = false\n")
f.close() f.close()
c = TahoeClient(basedir) c = TahoeClient(basedir)
ic = c.introducer_client ic = c.introducer_client
outbound = ic._outbound_announcements outbound = ic._outbound_announcements