Skip to content

Commit

Permalink
taverntesting#823: fix unexpected
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Bohn committed Feb 14, 2023
1 parent 8b10944 commit d3529ba
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tavern/_plugins/mqtt/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,12 @@ def _await_messages_on_topic(

if verifiers:
for v in verifiers:
self._adderr(
"Expected '%s' on topic '%s' but no such message received",
v.expected_payload,
topic,
)
if not v.expected.get("unexpected"):
self._adderr(
"Expected '%s' on topic '%s' but no such message received",
v.expected_payload,
topic,
)

for msg in correct_messages:
if msg.expected.get("unexpected"):
Expand Down

0 comments on commit d3529ba

Please sign in to comment.