Skip to content

Commit 402e57e

Browse files
author
Yoshihiro Takahara
committed
test: fix pipeline split test expectations
1 parent 11174bf commit 402e57e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test_shell_executor_pipeline.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ async def test_pipeline_split():
1616

1717
# Test empty pipe sections
1818
commands = executor._split_pipe_commands(["|", "grep", "pattern"])
19-
assert len(commands) == 2
20-
assert commands[0] == []
21-
assert commands[1] == ["grep", "pattern"]
19+
assert len(commands) == 1
20+
assert commands[0] == ["grep", "pattern"]
2221

2322
# Test multiple pipes
2423
commands = executor._split_pipe_commands(
@@ -31,6 +30,5 @@ async def test_pipeline_split():
3130

3231
# Test trailing pipe
3332
commands = executor._split_pipe_commands(["echo", "hello", "|"])
34-
assert len(commands) == 2
33+
assert len(commands) == 1
3534
assert commands[0] == ["echo", "hello"]
36-
assert commands[1] == []

0 commit comments

Comments
 (0)