Skip to content

Commit 6189603

Browse files
committed
tweaks
1 parent 950e6e1 commit 6189603

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pipes_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ func TestWithReader(t *testing.T) {
2525
t.Errorf("want %q, got %q", want, got)
2626
}
2727
}
28+
2829
func TestWithError(t *testing.T) {
29-
p := File("testdata/empty.txt")
30+
t.Parallel()
31+
p := script.File("testdata/empty.txt")
3032
want := "fake error"
3133
_, gotErr := p.WithError(errors.New(want)).String()
3234
if gotErr.Error() != "fake error" {
@@ -36,7 +38,7 @@ func TestWithError(t *testing.T) {
3638
if err == nil {
3739
t.Error("input not closed after reading")
3840
}
39-
p = File("testdata/empty.txt")
41+
p = script.File("testdata/empty.txt")
4042
_, gotErr = p.WithError(nil).String()
4143
if gotErr != nil {
4244
t.Errorf("got unexpected error: %q", gotErr.Error())

0 commit comments

Comments
 (0)