Skip to content

Commit eb962d8

Browse files
committed
Disable longline test on Windows
1 parent 5d7a635 commit eb962d8

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

script_test.go

-11
Original file line numberDiff line numberDiff line change
@@ -343,17 +343,6 @@ func TestExecForEach_ErrorsOnUnbalancedQuotes(t *testing.T) {
343343
}
344344
}
345345

346-
func TestExecForEach_HandlesLongLines(t *testing.T) {
347-
t.Parallel()
348-
got, err := script.Echo(longLine).ExecForEach(`echo "{{.}}"`).String()
349-
if err != nil {
350-
t.Fatal(err)
351-
}
352-
if longLine != got {
353-
t.Error(cmp.Diff(longLine, got))
354-
}
355-
}
356-
357346
func TestFilterByCopyPassesInputThroughUnchanged(t *testing.T) {
358347
t.Parallel()
359348
p := script.Echo("hello").Filter(func(r io.Reader, w io.Writer) error {

script_unix_test.go

+11
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ import (
99
"github.com/google/go-cmp/cmp"
1010
)
1111

12+
func TestExecForEach_HandlesLongLines(t *testing.T) {
13+
t.Parallel()
14+
got, err := script.Echo(longLine).ExecForEach(`echo "{{.}}"`).String()
15+
if err != nil {
16+
t.Fatal(err)
17+
}
18+
if longLine != got {
19+
t.Error(cmp.Diff(longLine, got))
20+
}
21+
}
22+
1223
func TestExecRunsShWithEchoHelloAndGetsOutputHello(t *testing.T) {
1324
t.Parallel()
1425
p := script.Exec("sh -c 'echo hello'")

0 commit comments

Comments
 (0)