Skip to content

Commit

Permalink
feat: Activate blockbuster Lock.aquire detection (#5157)
Browse files Browse the repository at this point in the history
Activate blockbuster Lock.aquire detection

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
  • Loading branch information
cbornet and ogabrielluiz authored Dec 9, 2024
1 parent 267c08b commit d58530c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/backend/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ def blockbuster(request):
"io.TextIOWrapper.read",
]:
bb.functions[func].can_block_functions.append(("importlib_metadata/__init__.py", {"metadata"}))
bb.functions["threading.Lock.acquire"].deactivate()

for func in bb.functions:
if func.startswith("sqlite3."):
bb.functions[func].deactivate()
yield bb


Expand Down

0 comments on commit d58530c

Please sign in to comment.