diff options
Diffstat (limited to 'packages/meshbay-node/tests/test_packaging_win.py')
| -rw-r--r-- | packages/meshbay-node/tests/test_packaging_win.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/meshbay-node/tests/test_packaging_win.py b/packages/meshbay-node/tests/test_packaging_win.py index ad366d0..1fe6be8 100644 --- a/packages/meshbay-node/tests/test_packaging_win.py +++ b/packages/meshbay-node/tests/test_packaging_win.py @@ -824,7 +824,10 @@ def test_nothing_treats_find_node_binary_as_always_a_promise(): def test_a_stop_that_leaves_the_node_answering_says_so(): stop = _fn_body(MAIN_JS.read_text(encoding="utf-8"), "async function nodeServiceStop()") - assert "if (await probeNode())" in stop and "throw new Error" in stop + # Nothing answering is not enough: the control API closes before the + # process exits, and the page said "Stopped" about a node still running. + assert "if (await probeNode() || (await winNodePids()).length)" in stop + assert "if (!r.ok)" in stop and "throw new Error" in stop def test_node_start_provisions_before_it_starts_anything(): |