# Stage #BR6 (Pipelines - Dual-command pipeline): bug in test case? The test expect 4th line from a file of 3 lines

**URL:** <https://forum.codecrafters.io/t/stage-br6-pipelines-dual-command-pipeline-bug-in-test-case-the-test-expect-4th-line-from-a-file-of-3-lines/15844>\
**Category:** Bug Reports\
**Tags:** challenge:shell\
**Created:** [January 28, 2026, 1:18pm UTC](https://forum.codecrafters.io/t/stage-br6-pipelines-dual-command-pipeline-bug-in-test-case-the-test-expect-4th-line-from-a-file-of-3-lines/15844 "2026-01-28T13:18:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunmeng90](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/sunmeng90/32/1093_2.png) [@sunmeng90](https://forum.codecrafters.io/u/sunmeng90)\
**Post date:** [January 28, 2026, 1:18pm UTC](https://forum.codecrafters.io/t/stage-br6-pipelines-dual-command-pipeline-bug-in-test-case-the-test-expect-4th-line-from-a-file-of-3-lines/15844/1 "2026-01-28T13:18:02Z")

</div>

Test case expect 4th line: `4. apple mango`, but the file-17.txt only has 3 lines in total

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/3/6/36b8d68b959d9ba5b46de14d98b5a193db067355.png)

---

<div class="post-metadata">

**Author:** ![sunmeng90](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/sunmeng90/32/1093_2.png) [@sunmeng90](https://forum.codecrafters.io/u/sunmeng90)\
**Post date:** [January 28, 2026, 1:42pm UTC](https://forum.codecrafters.io/t/stage-br6-pipelines-dual-command-pipeline-bug-in-test-case-the-test-expect-4th-line-from-a-file-of-3-lines/15844/3 "2026-01-28T13:42:03Z")

</div>

never mind, i probably find the issue, test tester may append line to file but my command already exit

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [February 5, 2026, 6:00am UTC](https://forum.codecrafters.io/t/stage-br6-pipelines-dual-command-pipeline-bug-in-test-case-the-test-expect-4th-line-from-a-file-of-3-lines/15844/5 "2026-02-05T06:00:35Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
