diff --git a/tests/integration/test_integration_all_rust.py b/tests/integration/test_integration_all_rust.py index 5b85ade0c..85f6ff761 100644 --- a/tests/integration/test_integration_all_rust.py +++ b/tests/integration/test_integration_all_rust.py @@ -426,7 +426,7 @@ def setup_mock_server(): global MOCK_SERVER_THREAD MOCK_SERVER_THREAD = Thread( - target=run_fastapi_app, kwargs=dict(host="localhost", port=MOCK_SERVER_PORT) + target=run_fastapi_app, kwargs=dict(host="127.0.0.1", port=MOCK_SERVER_PORT) ) MOCK_SERVER_THREAD.daemon = True MOCK_SERVER_THREAD.start() @@ -1419,7 +1419,7 @@ async def quick_register(self, connection_port=None): await client.connect() await client.hello() await client.register() - returnValue(client) + return client @pytest.mark.asyncio async def shut_down(self, client=None):