Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

force dependency between test models #7767

Merged
merged 2 commits into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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