Skip to content

Commit

Permalink
Fix #7179 (#8279)
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke authored Aug 2, 2023
1 parent 5814928 commit a433c31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/dbt/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def __init__(self, thread_id, known: List):
self.thread_id = thread_id
self.known = known
super().__init__(
msg="connection never acquired for thread {self.thread_id}, have {self.known}"
msg=f"connection never acquired for thread {self.thread_id}, have {self.known}"
)


Expand Down
3 changes: 1 addition & 2 deletions tests/functional/compile/test_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ def test_default(self, project):
assert get_lines("first_model") == ["select 1 as fun"]
assert any("_test_compile as schema" in line for line in get_lines("second_model"))

@pytest.mark.skip("Investigate flaky test #7179")
def test_no_introspect(self, project):
with pytest.raises(DbtRuntimeError):
with pytest.raises(DbtRuntimeError, match="connection never acquired for thread"):
run_dbt(["compile", "--no-introspect"])


Expand Down

0 comments on commit a433c31

Please sign in to comment.