MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / test_read_lock_is_reentrant

Function test_read_lock_is_reentrant

tests/test_locks.py:27–32  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

25
26
27def test_read_lock_is_reentrant(tmp_path):
28 openkb_dir = tmp_path / ".openkb"
29
30 with kb_read_lock(openkb_dir):
31 with kb_read_lock(openkb_dir):
32 assert (openkb_dir / "ingest.lock").exists()
33
34
35def test_read_locks_do_not_block_each_other_in_process(tmp_path):

Callers

nothing calls this directly

Calls 1

kb_read_lockFunction · 0.90

Tested by

no test coverage detected