Skip to content

Commit

Permalink
force dependency between test models (#7767)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk authored Jun 5, 2023
1 parent 79bd985 commit 89541fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Under the Hood-20230602-145743.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Under the Hood
body: Fix flaky test for --fail-fast
time: 2023-06-02T14:57:43.266412-04:00
custom:
Author: michelleark
Issue: "7744"
2 changes: 2 additions & 0 deletions tests/functional/fail_fast/test_fail_fast_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"""

models__two_sql = """
-- depends_on: {{ ref('one') }}
select 1 /failed
"""

Expand All @@ -35,6 +36,7 @@ def test_fail_fast_run(
assert run_results_file.is_file()
with run_results_file.open() as run_results_str:
run_results = json.loads(run_results_str.read())
assert len(run_results["results"]) == 2
assert run_results["results"][0]["status"] == "success"
assert run_results["results"][1]["status"] == "error"

Expand Down

0 comments on commit 89541fa

Please sign in to comment.