Skip to content

Commit

Permalink
fixed cause of failing test
Browse files Browse the repository at this point in the history
reverted test for test_v2_property_passing
  • Loading branch information
builderjer committed Feb 11, 2024
1 parent e5406da commit 3b40472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ovos_tts_plugin_server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _fetch_audio_data(self, params: dict, sentence: str, servers: list) -> bytes
else:
url = f"{url}/synthesize/{sentence}"
self.log.debug(f"Chosen TTS server {url}")
r: requests.Response = requests.get(url=url, params=params, verify=self.verify_ssl, timeout=30)
r: requests.Response = requests.get(url=url, params=params, verify=self.verify_ssl, timeout=self.tts_timeout)
if r.ok:
return r.content
self.log.error(f"Failed to get audio, response from {url}: {r.text}")
Expand Down
2 changes: 1 addition & 1 deletion tests/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,5 @@ def test_v2_property_passing(_, mock_requests, tts_instance_factory):
url="https://customhost.com/synthesize/test",
params={"lang": "en-us"},
verify=True,
timeout=30,
timeout=5,
)

0 comments on commit 3b40472

Please sign in to comment.