server slave different of master

This commit is contained in:
Cayo Puigdefabregas 2021-02-03 16:48:18 +01:00
parent af3f9058af
commit df9e413ece
1 changed files with 2 additions and 2 deletions

View File

@ -20,9 +20,9 @@ run = partial(run, display=False)
class DomainTestMixin(object): class DomainTestMixin(object):
MASTER_SERVER = os.environ.get('ORCHESTRA_MASTER_SERVER', 'localhost') MASTER_SERVER = os.environ.get('ORCHESTRA_MASTER_SERVER', 'localhost')
SLAVE_SERVER = os.environ.get('ORCHESTRA_SLAVE_SERVER', 'localhost') SLAVE_SERVER = os.environ.get('ORCHESTRA_SLAVE_SERVER', 'localhost2')
MASTER_SERVER_ADDR = socket.gethostbyname(MASTER_SERVER) MASTER_SERVER_ADDR = socket.gethostbyname(MASTER_SERVER)
SLAVE_SERVER_ADDR = socket.gethostbyname(SLAVE_SERVER) SLAVE_SERVER_ADDR = '127.0.0.2'
def setUp(self): def setUp(self):
djsettings.DEBUG = True djsettings.DEBUG = True