Skip to content

Commit

Permalink
Rename TINODE_HOST/PORT to CHAT_HOST/PORT
Browse files Browse the repository at this point in the history
  • Loading branch information
Arseniy committed May 26, 2020
1 parent 7c8113e commit 2eaafec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions chat/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ def __init__(self, host=None, port=None):

# Flask integration -- see app/__init__.py
def init_app(self, app):
self.init(app.config['TINODE_HOST'], app.config['TINODE_PORT'])
self.init(app.config['CHAT_HOST'], app.config['CHAT_PORT'])

def init(self, host, port):
self.__host = host
self.__port = port

def init_from_env(self):
self.init(os.environ['TINODE_HOST'], os.environ['TINODE_PORT'])
self.init(os.environ['CHAT_HOST'], os.environ['CHAT_PORT'])

def __run_event_loop(self):
""" Runs in a background thread """
Expand Down
4 changes: 2 additions & 2 deletions tests.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ services:
pytest:
image: chatapi-tests-${GITHUB_RUN_ID}
environment:
- "TINODE_HOST=tinode-server"
- "TINODE_PORT=16060"
- "CHAT_HOST=tinode-server"
- "CHAT_PORT=16060"
- "WAIT_FOR=tinode-server:16060"

tinode-server:
Expand Down
2 changes: 1 addition & 1 deletion tests/session_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def same_elements_in_lists(list1, list2):

@pytest.fixture(scope='module')
def loop():
loop = ChatLoop(os.environ['TINODE_HOST'], os.environ['TINODE_PORT'])
loop = ChatLoop(os.environ['CHAT_HOST'], os.environ['CHAT_PORT'])
yield loop
loop.stop()

Expand Down

0 comments on commit 2eaafec

Please sign in to comment.