diff --git a/tests/unit/test_gateway/test_dispatch_mux.py b/tests/unit/test_gateway/test_dispatch_mux.py index 72c0f2e3..b623a1b6 100644 --- a/tests/unit/test_gateway/test_dispatch_mux.py +++ b/tests/unit/test_gateway/test_dispatch_mux.py @@ -75,7 +75,7 @@ class TestMux: async def test_mux_receive_valid_message(self): """Test Mux receive method with valid message""" mock_dispatcher_manager = MagicMock() - mock_ws = MagicMock() + mock_ws = AsyncMock() mock_running = MagicMock() mux = Mux( @@ -88,7 +88,8 @@ class TestMux: mock_msg = MagicMock() mock_msg.json.return_value = { "request": {"type": "test"}, - "id": "test-id-123" + "id": "test-id-123", + "service": "test-service" } # Call receive