Adds further testing to cover scripts with non-zero exit codes

This commit is contained in:
Trenton H committed 2022-11-11 08:58:49 -08:00
1 parent c4965580de
commit 057f6016cc
2 files changed
+70 -2

No files matched your search

+2 -2
View File
@@ -163,7 +163,7 @@ class Consumer(LoggingMixin):
# Raises exception on non-zero output
completed_proc.check_returncode()
except Exception as e: # pragma: nocover
except Exception as e:
self._fail(
MESSAGE_PRE_CONSUME_SCRIPT_ERROR,
f"Error while executing pre-consume script: {e}",
@@ -237,7 +237,7 @@ class Consumer(LoggingMixin):
# Raises exception on non-zero output
completed_proc.check_returncode()
except Exception as e: # pragma: nocover
except Exception as e:
self._fail(
MESSAGE_POST_CONSUME_SCRIPT_ERROR,
f"Error while executing post-consume script: {e}",