diff --git a/openwisp_monitoring/check/settings.py b/openwisp_monitoring/check/settings.py index 5cdedbde6..e04061cdf 100644 --- a/openwisp_monitoring/check/settings.py +++ b/openwisp_monitoring/check/settings.py @@ -14,13 +14,4 @@ PING_CHECK_CONFIG = get_settings_value('PING_CHECK_CONFIG', {}) # By default it should be disabled. AUTO_IPERF = get_settings_value('AUTO_IPERF', True) -IPERF_SERVERS = get_settings_value( - 'IPERF_SERVERS', - { - # Running on my local - # Some Public Iperf Servers : https://iperf.fr/iperf-servers.php#public-servers - # 'be63c4e5-a68a-4650-bfe8-733837edb8be': ['iperf.biznetnetworks.com'], - 'a9734710-db30-46b0-a2fc-01f01046fe4f': ['speedtest.uztelecom.uz'], - # '': [''] - }, -) +IPERF_SERVERS = get_settings_value('IPERF_SERVERS', {}) diff --git a/tests/openwisp2/settings.py b/tests/openwisp2/settings.py index 6d042e5d7..636e9f7e1 100644 --- a/tests/openwisp2/settings.py +++ b/tests/openwisp2/settings.py @@ -270,6 +270,14 @@ # Celery auto detects tasks only from INSTALLED_APPS CELERY_IMPORTS = ('openwisp_monitoring.device.tasks',) +OPENWISP_MONITORING_IPERF_SERVERS = { + # Running on my local + # Some Public Iperf Servers : https://iperf.fr/iperf-servers.php#public-servers + # 'be63c4e5-a68a-4650-bfe8-733837edb8be': ['iperf.biznetnetworks.com'], + 'a9734710-db30-46b0-a2fc-01f01046fe4f': ['speedtest.uztelecom.uz'], + # '': [''] +} + # local settings must be imported before test runner otherwise they'll be ignored try: from openwisp2.local_settings import *