mirror of
https://github.com/hwchase17/langchain.git
synced 2026-07-15 07:00:38 +00:00
Apply patch [skip ci]
This commit is contained in:
@@ -230,6 +230,7 @@ def test_batch_no_race_conditions() -> None:
|
||||
def invoke(
|
||||
self, input: int, config: Optional[RunnableConfig] = None, **kwargs: Any
|
||||
) -> int:
|
||||
del config, kwargs # Unused but required by interface
|
||||
# Simulate race condition scenario
|
||||
current = self.counter
|
||||
time.sleep(0.001) # Give other threads a chance to interfere
|
||||
@@ -310,3 +311,4 @@ if __name__ == "__main__":
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user