Fix max_client, max_connection_time failed tests

Signed-off-by: makaveli10 <vineet.suryan@collabora.com>
This commit is contained in:
makaveli10
2025-07-21 23:09:16 +05:30
parent 8d6ddd4f7b
commit bf6251e3b8
2 changed files with 2 additions and 2 deletions
-2
View File
@@ -49,8 +49,6 @@ class TestClientCallbacks(BaseTestCase):
"task": self.client.task,
"model": self.client.model,
"use_vad": True,
"max_clients": 4,
"max_connection_time": 600,
"send_last_n_segments": 10,
"no_speech_thresh": 0.45,
"clip_audio": False,
+2
View File
@@ -42,6 +42,8 @@ class TestGetWaitTime(unittest.TestCase):
class TestServerConnection(unittest.TestCase):
def setUp(self):
self.server = TranscriptionServer()
self.server.client_manager = ClientManager(max_clients=4, max_connection_time=600)
self.server.cache_path = "~/.cache/whisper-live/"
@mock.patch('websockets.WebSocketCommonProtocol')
def test_connection(self, mock_websocket):