Name the pem so it gets installed

Also use the new_tub helper that reads the pem so we don't have to generate a
new cert in this test
This commit is contained in:
Jean-Paul Calderone 2020-12-06 10:39:25 -05:00
parent 386f30fa79
commit 8278fa9c62
2 changed files with 2 additions and 2 deletions

View File

@ -527,7 +527,7 @@ def new_tub():
# Use a pre-generated key so the tests don't spend a lot of time
# generating new ones.
data = FilePath(__file__).sibling(b"data")
privkey = data.child(b"node.pem")
privkey = data.child(b"node.pem.txt")
return Tub(
certData=privkey.getContent(),
)
@ -698,7 +698,7 @@ storage:
def add_one_server(x):
data["anonymous-storage-FURL"] = b"pb://%s@spy:nowhere/fake" % (base32.b2a(b"%d" % x),)
tub = Tub()
tub = new_tub()
connects = []
spy = SpyHandler(connects)
tub.addConnectionHintHandler("spy", spy)