Patch distribution interval in faucet testing

pull/812/head
Kieran Prasch 2019-03-21 14:01:56 -07:00
parent 87ba9c7b42
commit 06311630d2
No known key found for this signature in database
GPG Key ID: 199AB839D4125A62
1 changed files with 6 additions and 2 deletions

View File

@ -18,14 +18,18 @@ from nucypher.utilities.sandbox.constants import (
@pytest_twisted.inlineCallbacks
def test_run_felix(click_runner, federated_ursulas, mock_primary_registry_filepath):
def test_run_felix(click_runner, testerchain, federated_ursulas, mock_primary_registry_filepath):
Felix.DISTRIBUTION_INTERVAL = 5 # seconds
Felix.DISBURSEMENT_INTERVAL = 0.01 # hours
# Main thread (Flask)
os.environ['NUCYPHER_FELIX_DB_SECRET'] = INSECURE_DEVELOPMENT_PASSWORD
# Test subproc (Click)
envvars = {'NUCYPHER_KEYRING_PASSWORD': INSECURE_DEVELOPMENT_PASSWORD,
'NUCYPHER_FELIX_DB_SECRET': INSECURE_DEVELOPMENT_PASSWORD}
'NUCYPHER_FELIX_DB_SECRET': INSECURE_DEVELOPMENT_PASSWORD,
'FLASK_DEBUG': '1'}
# Deploy contracts
deploy_args = ('contracts',