From 6b8c1932216315454b9df0c826d12ed11599e6be Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 29 Jul 2022 18:57:44 -0400 Subject: [PATCH] Add another name hack for CI race conditions.. --- tests/test_debugger.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_debugger.py b/tests/test_debugger.py index 23e4b24..55b77ea 100644 --- a/tests/test_debugger.py +++ b/tests/test_debugger.py @@ -418,15 +418,15 @@ def test_multi_subactors( # 2nd name_error failure child.expect(r"\(Pdb\+\+\)") + # XXX: lol honestly no idea why CI is suck a cuck + from conftest import _ci_env + name = 'name_error' if _ci_env else 'name_error_1' + assert_before(child, [ - "Attaching to pdb in crashed actor: ('name_error_1'", + f"Attaching to pdb in crashed actor: ('{name}'", "NameError", ]) - # before = str(child.before.decode()) - # assert "Attaching to pdb in crashed actor: ('name_error_1'" in before - # assert "NameError" in before - if ctlc: do_ctlc(child)