aboutsummaryrefslogtreecommitdiff
path: root/tests/functional_tests/daemon_info.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional_tests/daemon_info.py')
-rwxr-xr-xtests/functional_tests/daemon_info.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/functional_tests/daemon_info.py b/tests/functional_tests/daemon_info.py
index 4fa768b03..14fc14062 100755
--- a/tests/functional_tests/daemon_info.py
+++ b/tests/functional_tests/daemon_info.py
@@ -37,6 +37,7 @@ Test the following RPCs:
"""
from __future__ import print_function
+import os
from framework.daemon import Daemon
class DaemonGetInfoTest():
@@ -63,7 +64,7 @@ class DaemonGetInfoTest():
# difficulty should be set to 1 for this test
assert 'difficulty' in res.keys()
- assert res.difficulty == 1;
+ assert res.difficulty == int(os.environ['DIFFICULTY'])
# nettype should not be TESTNET
assert 'testnet' in res.keys()