Initialize shared storage for all graph storage types in graph unit test

This commit is contained in:
yangdx 2025-11-06 19:24:12 +08:00
parent 0c47d1a2d1
commit 36501b82f5

View file

@ -110,9 +110,9 @@ async def initialize_graph_storage():
), # Working directory ), # Working directory
} }
# If using NetworkXStorage, initialize shared_storage first # Initialize shared_storage for all storage types (required for locks)
if graph_storage_type == "NetworkXStorage": # All graph storage implementations use locks like get_data_init_lock() and get_graph_db_lock()
initialize_share_data() # Use single-process mode initialize_share_data() # Use single-process mode (workers=1)
try: try:
storage = storage_class( storage = storage_class(