From 570c975f1467749425ca353946c761ffb0b18b50 Mon Sep 17 00:00:00 2001 From: goodboy Date: Fri, 10 Apr 2026 14:55:09 -0400 Subject: [PATCH] Fix test typo + use `wait_for_result()` API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - "boostrap" → "bootstrap" in mod docstring - replace deprecated `portal.result()` with `portal.wait_for_result()` + value assertion inside the nursery block Review: PR #1 (Copilot) https://github.com/mahmoudhas/tractor/pull/1#pullrequestreview-4091096072 (this patch was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code --- tests/test_spawning.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_spawning.py b/tests/test_spawning.py index 52296f34..7e230085 100644 --- a/tests/test_spawning.py +++ b/tests/test_spawning.py @@ -1,7 +1,7 @@ """ Spawning basics including audit of, -- subproc boostrap, such as subactor runtime-data/config inheritance, +- subproc bootstrap, such as subactor runtime-data/config inheritance, - basic (and mostly legacy) `ActorNursery` subactor starting and cancel APIs. @@ -160,7 +160,8 @@ async def test_most_beautiful_word( name='some_linguist', ) - print(await portal.result()) + res: Any = await portal.wait_for_result() + assert res == return_value # The ``async with`` will unblock here since the 'some_linguist' # actor has completed its main task ``cellar_door``.