From ae309e74e66874dbe82b826cb9290cffb6ac24f2 Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Fri, 14 Jul 2023 12:47:39 -0500 Subject: [PATCH] Fix expected result from broken pipe test Signed-off-by: W. Michael Petullo --- pipe_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipe_test.go b/pipe_test.go index 70b235c..39f123e 100644 --- a/pipe_test.go +++ b/pipe_test.go @@ -174,7 +174,7 @@ func (S) TestLineTermination(c *C) { pipe.Exec("true"), ) output, err := pipe.Output(p) - c.Assert(err, ErrorMatches, `command "true": write \|1: broken pipe`) + c.Assert(err, ErrorMatches, `io: read/write on closed pipe`) c.Assert(string(output), Equals, "") }