mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-18 18:56:28 +00:00
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:
parent
1f6c04518e
commit
7637d70f1b
@ -1014,10 +1014,17 @@ class ClientSeqnums(unittest.TestCase):
|
||||
def test_client(self):
|
||||
basedir = "introducer/ClientSeqnums/test_client"
|
||||
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.write("[client]\n")
|
||||
f.write("introducer.furl = nope\n")
|
||||
f.write("[storage]\n")
|
||||
f.write("enabled = false\n")
|
||||
f.close()
|
||||
|
||||
c = TahoeClient(basedir)
|
||||
ic = c.introducer_client
|
||||
outbound = ic._outbound_announcements
|
||||
|
Loading…
Reference in New Issue
Block a user