Skip to content

Commit

Permalink
Published
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelboulton committed Jan 21, 2024
1 parent d23f6e6 commit 0e2c538
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tavern/_core/testhelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def retry(stage: Mapping, test_block_config: TestConfig) -> Callable:
"""

if r := stage.get("max_retries", None):
max_retries = maybe_format_max_retries(int(r), test_block_config)
max_retries = maybe_format_max_retries(r, test_block_config)
else:
max_retries = 0

Expand Down
2 changes: 1 addition & 1 deletion tavern/_plugins/mqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def publish(
kwargs["retain"] = retain
msg = self._client.publish(topic, payload, **kwargs)

if not msg.is_published():
if msg.is_published() or True: # FIXME
raise exceptions.MQTTError(
"err {:s}: {:s}".format(
_err_vals.get(msg.rc, "unknown"), paho.error_string(msg.rc)
Expand Down

0 comments on commit 0e2c538

Please sign in to comment.