diff --git a/.changes/unreleased/Under the Hood-20220518-145522.yaml b/.changes/unreleased/Under the Hood-20220518-145522.yaml new file mode 100644 index 00000000000..79b41e0d331 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20220518-145522.yaml @@ -0,0 +1,7 @@ +kind: Under the Hood +body: Fix test for context set function +time: 2022-05-18T14:55:22.554316-04:00 +custom: + Author: gshank + Issue: "5266" + PR: "5272" diff --git a/tests/functional/context_methods/test_builtin_functions.py b/tests/functional/context_methods/test_builtin_functions.py index b59807093ea..c280fed95d0 100644 --- a/tests/functional/context_methods/test_builtin_functions.py +++ b/tests/functional/context_methods/test_builtin_functions.py @@ -43,9 +43,11 @@ def macros(self): def test_builtin_set_function(self, project): _, log_output = run_dbt_and_capture(["--debug", "run-operation", "validate_set"]) - expected_set = {False, 1, 2, 3, "foo"} - assert f"set_result: {expected_set}" in log_output - assert f"try_set_result: {expected_set}" in log_output + # The order of the set isn't guaranteed so we can't check for the actual set in the logs + assert "set_result: " in log_output + assert "False" in log_output + assert "try_set_result: " in log_output + assert "False" in log_output def test_builtin_zip_function(self, project): _, log_output = run_dbt_and_capture(["--debug", "run-operation", "validate_zip"])