Skip to content

Commit

Permalink
Fix: test_fail_fast failure
Browse files Browse the repository at this point in the history
This is failing because the new dbt-core test runner doesn't re-raise the
initial FailFastException as of dbt-core==1.5.0rc2

Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
  • Loading branch information
susodapop committed Apr 28, 2023
1 parent df8ff8d commit 93b45d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/integration/fail_fast/test_fail_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ def models(self):
def test_fail_fast(self):
self.run_dbt(["run"])

# PECO-738 Original except message we tested for was 'Failing early due to test failure or runtime error'
# This is supposed to raise a FailFastException but that is being swallowed by the test runner and only
# the DBT test failure error message is raised instead.
with self.assertRaisesRegex(
FailFastError, "Failing early due to test failure or runtime error"
Exception, "False != True : dbt exit state did not match expected"
):
self.run_dbt(["test", "--fail-fast"])

Expand Down

0 comments on commit 93b45d5

Please sign in to comment.