Improve performance of websocket_api dispatch (#88496)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
parent
cc4a179ca8
commit
ecf87ae979
3 changed files with 21 additions and 11 deletions
|
@ -17,7 +17,7 @@ from tests.typing import WebSocketGenerator
|
|||
@pytest.fixture
|
||||
def mock_low_queue():
|
||||
"""Mock a low queue."""
|
||||
with patch("homeassistant.components.websocket_api.http.MAX_PENDING_MSG", 5):
|
||||
with patch("homeassistant.components.websocket_api.http.MAX_PENDING_MSG", 1):
|
||||
yield
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue