mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 23:26:43 +00:00
Replace the hard-coded 522-bit RSA key size used for tests with a TEST_RSA_KEY_SIZE constant defined in test/common.py (part 2). refs #393
This commit is contained in:
parent
fbe0e42bbf
commit
c55c44e70a
@ -26,6 +26,7 @@ from allmydata.key_generator import KeyGeneratorService
|
||||
import allmydata.test.common_util as testutil
|
||||
from allmydata import immutable
|
||||
|
||||
TEST_RSA_KEY_SIZE = 2048
|
||||
|
||||
def flush_but_dont_ignore(res):
|
||||
d = flushEventualQueue()
|
||||
|
@ -27,6 +27,8 @@ from allmydata.util import fileutil, idlib, hashutil
|
||||
from allmydata.util.hashutil import sha1
|
||||
from allmydata.test.common_web import HTTPClientGETFactory
|
||||
from allmydata.interfaces import IStorageBroker
|
||||
from allmydata.test.common import TEST_RSA_KEY_SIZE
|
||||
|
||||
|
||||
class IntentionalError(Exception):
|
||||
pass
|
||||
|
@ -7,6 +7,7 @@ from foolscap.api import Tub, fireEventually, flushEventualQueue
|
||||
|
||||
from allmydata import key_generator
|
||||
from allmydata.util import pollmixin
|
||||
from allmydata.test.common import TEST_RSA_KEY_SIZE
|
||||
from pycryptopp.publickey import rsa
|
||||
|
||||
def flush_but_dont_ignore(res):
|
||||
|
@ -35,6 +35,8 @@ from allmydata.mutable.layout import unpack_header, MDMFSlotReadProxy
|
||||
from allmydata.mutable.repairer import MustForceRepairError
|
||||
|
||||
import allmydata.test.common_util as testutil
|
||||
from allmydata.test.common import TEST_RSA_KEY_SIZE
|
||||
|
||||
|
||||
# this "FakeStorage" exists to put the share data in RAM and avoid using real
|
||||
# network connections, both to speed up the tests and to reduce the amount of
|
||||
|
Loading…
Reference in New Issue
Block a user