From 89541faec9664c92b67f15d7b4b51877f6f66917 Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Mon, 5 Jun 2023 07:45:59 -0700 Subject: [PATCH] force dependency between test models (#7767) --- .changes/unreleased/Under the Hood-20230602-145743.yaml | 6 ++++++ tests/functional/fail_fast/test_fail_fast_run.py | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 .changes/unreleased/Under the Hood-20230602-145743.yaml diff --git a/.changes/unreleased/Under the Hood-20230602-145743.yaml b/.changes/unreleased/Under the Hood-20230602-145743.yaml new file mode 100644 index 00000000000..7fc63e289a3 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20230602-145743.yaml @@ -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" diff --git a/tests/functional/fail_fast/test_fail_fast_run.py b/tests/functional/fail_fast/test_fail_fast_run.py index 92ed1c7aea4..ad0a84e169d 100644 --- a/tests/functional/fail_fast/test_fail_fast_run.py +++ b/tests/functional/fail_fast/test_fail_fast_run.py @@ -12,6 +12,7 @@ """ models__two_sql = """ +-- depends_on: {{ ref('one') }} select 1 /failed """ @@ -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"