Skip to content

Commit 02fd595

Browse files
committed
Fix
1 parent d0e6b87 commit 02fd595

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/unit/actor/test_actor_lifecycle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ async def handler(websocket: websockets.asyncio.server.ServerConnection) -> None
233233
await websocket.wait_closed()
234234

235235
async with websockets.asyncio.server.serve(handler, host='localhost') as ws_server:
236-
port: int = ws_server.sockets[0].getsockname()[1] # ty: ignore[non-subscriptable]
236+
port: int = ws_server.sockets[0].getsockname()[1] # ty: ignore[not-subscriptable]
237237
monkeypatch.setenv(ActorEnvVars.EVENTS_WEBSOCKET_URL, f'ws://localhost:{port}')
238238

239239
mock_run_client = Mock()

tests/unit/events/test_apify_event_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ async def handler(websocket: websockets.asyncio.server.ServerConnection) -> None
148148
async with websockets.asyncio.server.serve(handler, host='localhost') as ws_server:
149149
# When you don't specify a port explicitly, the websocket connection is opened on a random free port.
150150
# We need to find out which port is that.
151-
port: int = ws_server.sockets[0].getsockname()[1] # ty: ignore[non-subscriptable]
151+
port: int = ws_server.sockets[0].getsockname()[1] # ty: ignore[not-subscriptable]
152152
monkeypatch.setenv(ActorEnvVars.EVENTS_WEBSOCKET_URL, f'ws://localhost:{port}')
153153

154154
async with ApifyEventManager(Configuration.get_global_configuration()):
@@ -175,7 +175,7 @@ async def send_platform_event(event_name: Event, data: Any = None) -> None:
175175
async with websockets.asyncio.server.serve(handler, host='localhost') as ws_server:
176176
# When you don't specify a port explicitly, the websocket connection is opened on a random free port.
177177
# We need to find out which port is that.
178-
port: int = ws_server.sockets[0].getsockname()[1] # ty: ignore[non-subscriptable]
178+
port: int = ws_server.sockets[0].getsockname()[1] # ty: ignore[not-subscriptable]
179179
monkeypatch.setenv(ActorEnvVars.EVENTS_WEBSOCKET_URL, f'ws://localhost:{port}')
180180

181181
dummy_system_info = {

uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)