aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/test_connect_never_hangs.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/tests/test_connect_never_hangs.py')
-rw-r--r--packages/meshbay-hub/tests/test_connect_never_hangs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/meshbay-hub/tests/test_connect_never_hangs.py b/packages/meshbay-hub/tests/test_connect_never_hangs.py
index 5680877..1fb4d3d 100644
--- a/packages/meshbay-hub/tests/test_connect_never_hangs.py
+++ b/packages/meshbay-hub/tests/test_connect_never_hangs.py
@@ -69,7 +69,7 @@ def test_a_timed_out_gathering_still_sends_the_offer():
@pytest.mark.skipif(not MAIN.exists(), reason="the desktop client is not present")
def test_every_hub_call_from_the_client_has_a_deadline():
source = MAIN.read_text(encoding="utf-8")
- block = source.split("ipcMain.handle('hub:fetch'", 1)[1].split("ipcMain.handle", 1)[0]
+ block = source.split("handle('hub:fetch'", 1)[1].split("\n handle(", 1)[0]
assert "AbortSignal.timeout" in block, (
"a hub that accepts the connection and says nothing holds this for "
"as long as the OS allows")
@@ -88,5 +88,5 @@ def test_the_deadline_outlasts_the_hubs_own_longest_call():
@pytest.mark.skipif(not MAIN.exists(), reason="the desktop client is not present")
def test_a_timeout_says_so_rather_than_saying_fetch_failed():
source = MAIN.read_text(encoding="utf-8")
- block = source.split("ipcMain.handle('hub:fetch'", 1)[1].split("ipcMain.handle", 1)[0]
+ block = source.split("handle('hub:fetch'", 1)[1].split("\n handle(", 1)[0]
assert "TimeoutError" in block and "did not answer" in block