message: test(robot-server): Fix a race condition in the persistence tests
diff: from typing import AsyncGenerator, NamedTuple
  +import anyio
  import pytest
  from tests.integration.dev_server import DevServer
  @@ -143,6 +144,13 @@ async def test_run_actions_labware_offsets_persist(
  req_body={"data": {"actionType": "stop"}},
  )
  + # wait for the action to take effect
  + with anyio.fail_after(5):
  + while (await client.get_run(run_id=run_id)).json()["data"][
  + "status"
  + ] != "stopped":
  + await anyio.sleep(0.1)
  +
  # persist the run by setting current: false
  archive_run_response = await client.patch_run(
  run_id=run_id, req_body={"data": {"current": False}}
  