Skip to content

Commit

Permalink
Troubleshooting test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Oct 2, 2023
1 parent 3a7cf9a commit ea391bd
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions neon_minerva/integration/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def __init__(self, prompts: List[str], lang: str = "en-us", bus_config: dict = N
self.core_bus.run_in_thread()
self.lang = lang
self._prompts = prompts
self._intent_timeout = 15
self._speak_timeout = 30
self._intent_timeout = 30
self._speak_timeout = 60

self._results = list()
self._audio_output_done = Event()
Expand Down Expand Up @@ -120,9 +120,11 @@ def handle_prompt(self, prompt: str):

# Send prompt
self.send_prompt(prompt)
assert self._prompt_handled.wait(self._intent_timeout)
assert self._audio_output_done.wait(self._speak_timeout)
assert self._last_message is not None
LOG.info(self._last_message.context)
self._results.append(self._last_message.context["timing"])
try:
assert self._prompt_handled.wait(self._intent_timeout)
assert self._audio_output_done.wait(self._speak_timeout)
assert self._last_message is not None
self._results.append(self._last_message.context["timing"])
except AssertionError as e:
LOG.error(f"{prompt}: {e}")
LOG.debug(f"Handled {prompt}")

0 comments on commit ea391bd

Please sign in to comment.