Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tornado: Remove an unused port argument.

Alex Vandiver4354386e69e0
diff --git a/zerver/management/commands/runtornado.py b/zerver/management/commands/runtornado.py
index 03d952b3daf..e276a844c66 100644
--- a/zerver/management/commands/runtornado.py
+++ b/zerver/management/commands/runtornado.py
@@ -96,7 +96,7 @@ class Command(BaseCommand):
try:
# Application is an instance of Django's standard wsgi handler.
- application = create_tornado_application(port)
+ application = create_tornado_application()
if settings.AUTORELOAD:
zulip_autoreload_start()
diff --git a/zerver/tests/test_tornado.py b/zerver/tests/test_tornado.py
index 69a2347b65b..5a18f4c2d5c 100644
--- a/zerver/tests/test_tornado.py
+++ b/zerver/tests/test_tornado.py
@@ -29,7 +29,7 @@ class TornadoWebTestCase(AsyncHTTPTestCase, ZulipTestCase):
@override_settings(DEBUG=False)
def get_app(self) -> Application:
- return create_tornado_application(9993)
+ return create_tornado_application()
def tornado_client_get(self, path: str, **kwargs: Any) -> HTTPResponse:
self.add_session_cookie(kwargs)
diff --git a/zerver/tornado/application.py b/zerver/tornado/application.py
index a303b9a15f2..8563e9ea0c6 100644
--- a/zerver/tornado/application.py
+++ b/zerver/tornado/application.py
@@ -15,7 +15,7 @@ def setup_tornado_rabbitmq() -> None: # nocoverage
atexit.register(lambda: queue_client.close())
autoreload.add_reload_hook(lambda: queue_client.close())
-def create_tornado_application(port: int) -> tornado.web.Application:
+def create_tornado_application() -> tornado.web.Application:
urls = (
r"/notify_tornado",
r"/json/events",