Skip to content

Commit b169ab2

Browse files
committed
tests(control): clear remaining xfails with waits
1 parent 60722c9 commit b169ab2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/test_control_mode_regressions.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -497,10 +497,6 @@ class EnvMultiFixture(t.NamedTuple):
497497
expected_value="window_1",
498498
),
499499
id="env_new_window_multi",
500-
marks=pytest.mark.xfail(
501-
reason="control-mode loses environment with multiple -e flags",
502-
strict=True,
503-
),
504500
),
505501
]
506502

@@ -527,8 +523,8 @@ def test_environment_multi_var_propagation(case: EnvMultiFixture) -> None:
527523
pane = session.active_window.active_pane
528524
assert pane is not None
529525
pane.send_keys("echo $ENV_VAR_1", literal=True, suppress_history=False)
530-
output = pane.capture_pane()
531-
assert output[-2] == case.expected_value
526+
lines = wait_for_line(pane, lambda line: line.strip() == case.expected_value)
527+
assert any(line.strip() == case.expected_value for line in lines)
532528
finally:
533529
with contextlib.suppress(Exception):
534530
server.kill()

0 commit comments

Comments
 (0)