Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tbidne committed Jun 6, 2024
1 parent 7f61e90 commit ac0a079
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions test/functional/Functional/Miscellaneous.hs
Original file line number Diff line number Diff line change
Expand Up @@ -149,20 +149,9 @@ reportsStderr =
withErrorPrefix scriptPath <> "1 second: more output"
]

-- This is an "anti" test. We actually do not want this behavior. Ideally,
-- the lines:
--
-- echo -n "first: "
-- sleep 1
-- echo "second"
--
-- Should produce "first: second", since that is the original intention
-- (-n means do not append a newline). But because the time between logs is
-- longer than the poll-interval, it is split.
--
-- We include this test for documenting the current behavior, and if we ever
-- "fix" this -- see NOTE: [Command log splitting] --, then we can simply
-- flip the expected/unexpected below.
-- This is a combination "anti-test" and test. The block expectation is the
-- behavior that we are trying to improve, which is verified by the buffer
-- expectation.
slowOutputBroken :: ReadStrategyTestParams
slowOutputBroken =
ReadStrategyTestSimple
Expand Down

0 comments on commit ac0a079

Please sign in to comment.