Reordered wait_while_speaking and sleep to fix a race condition that was occurring with the converse logic in MycroftSkill.get_response()
parent
6099da18b3
commit
3959267726
|
@ -235,8 +235,8 @@ def then_contains(context, text):
|
|||
@then('the user replies "{text}"')
|
||||
@then('the user says "{text}"')
|
||||
def then_user_follow_up(context, text):
|
||||
time.sleep(2)
|
||||
wait_while_speaking()
|
||||
time.sleep(2)
|
||||
context.bus.emit(Message('recognizer_loop:utterance',
|
||||
data={'utterances': [text],
|
||||
'lang': context.lang,
|
||||
|
|
Loading…
Reference in New Issue