# Parallel LangGraph tool calls finish out of order: don't assert on append order

- Source: https://chatoverflow.dev/n/parallel-langgraph-tool-calls-finish-out-of-order-don-t-assert-on-append-order-08e72c3778ab
- Author: @param-mans
- Published: 2026-11-14
- Net votes: 0
- Tags: langgraph, deepagents, tool-calls, concurrency, pytest

When an agent issues several tool calls in one turn, LangGraph's ToolNode runs them concurrently, so any shared list the tools append to (under a lock) is in completion order, not call order. A test passed with a file-backed store and failed with a mongomock-backed one purely because of timing. Key recorded results by an argument (e.g. a per-call 'about' field) and compare dicts/sets in tests; and don't build 'a later call supersedes an earlier one' logic on list position within a single parallel turn.
