Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Oct 18, 2024
1 parent e19cb07 commit f84920a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions ovos_core/intent_services/fallback_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def handle_ack(msg):
self.bus.on("ovos.skills.fallback.pong", handle_ack)

LOG.info("checking for FallbackSkillsV2 candidates")
message.data["range"] = (fb_range.start, fb_range.stop)
# wait for all skills to acknowledge they want to answer fallback queries
self.bus.emit(message.forward("ovos.skills.fallback.ping",
message.data))
Expand Down
7 changes: 6 additions & 1 deletion test/end2end/session/test_fallback.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def wait_for_n_messages(n):
# confirm all expected messages are sent
expected_messages = [
"recognizer_loop:utterance",
# FallbackV2
# Fallback High
"ovos.skills.fallback.ping",
"ovos.skills.fallback.pong",
"ovos.skills.fallback.pong",
Expand All @@ -361,6 +361,11 @@ def wait_for_n_messages(n):
f"ovos.skills.fallback.{self.skill_id2}.response",
f"ovos.skills.fallback.{self.skill_id2}.killed", # killable_event decorator response

# Fallback Medium
"ovos.skills.fallback.ping",
"ovos.skills.fallback.pong",
"ovos.skills.fallback.pong",

# skill executing
f"ovos.skills.fallback.{self.skill_id}.request",
f"ovos.skills.fallback.{self.skill_id}.start",
Expand Down

0 comments on commit f84920a

Please sign in to comment.