[tests] Fix some issues with maindomain changing sometimes

This commit is contained in:
Alexandre Aubin 2018-12-10 02:53:27 +01:00
parent f93aa40c2e
commit 96a6e370a3

View file

@ -15,7 +15,7 @@ from yunohost.domain import _get_maindomain
from moulinette.core import MoulinetteError from moulinette.core import MoulinetteError
# Get main domain # Get main domain
maindomain = _get_maindomain() maindomain = ""
# Instantiate LDAP Authenticator # Instantiate LDAP Authenticator
AUTH_IDENTIFIER = ('ldap', 'ldap-anonymous') AUTH_IDENTIFIER = ('ldap', 'ldap-anonymous')
@ -24,6 +24,9 @@ auth = None
def setup_function(function): def setup_function(function):
global maindomain
maindomain = _get_maindomain()
print "" print ""
global auth global auth