Skip to content

Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.

test: give each ADK model-name case its own thread (#702)

David McKay196f06e4dc67
diff --git a/agent-adk/tests/test_main.py b/agent-adk/tests/test_main.py
index 4be11e04..357efb6b 100644
--- a/agent-adk/tests/test_main.py
+++ b/agent-adk/tests/test_main.py
@@ -180,8 +180,10 @@ def test_a_namespaced_model_name_is_sent_to_the_endpoint(monkeypatch, provider,
async def roundtrip():
body = {
- "threadId": "namespaced-model",
- "runId": "first-run",
+ # One thread and run per case: the adapter keeps a thread's state for the life of the
+ # process, so reusing them made the second case answer from the first one's thread.
+ "threadId": f"namespaced-model-{model}",
+ "runId": f"first-run-{model}",
"state": {},
"context": [],
"forwardedProps": {},