From 36501b82f5347c78a31260da53c65176a32ae5c4 Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 6 Nov 2025 19:24:12 +0800 Subject: [PATCH] Initialize shared storage for all graph storage types in graph unit test --- tests/test_graph_storage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_graph_storage.py b/tests/test_graph_storage.py index 96674046..c6932384 100644 --- a/tests/test_graph_storage.py +++ b/tests/test_graph_storage.py @@ -110,9 +110,9 @@ async def initialize_graph_storage(): ), # Working directory } - # If using NetworkXStorage, initialize shared_storage first - if graph_storage_type == "NetworkXStorage": - initialize_share_data() # Use single-process mode + # Initialize shared_storage for all storage types (required for locks) + # All graph storage implementations use locks like get_data_init_lock() and get_graph_db_lock() + initialize_share_data() # Use single-process mode (workers=1) try: storage = storage_class(