Skip to content

Commit 14b4605

Browse files
committed
add extra ignored test input
1 parent 6304e3e commit 14b4605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,11 +845,11 @@ func TestJQErrorsWithInvalidInput(t *testing.T) {
845845

846846
func TestJQProducesValidResultsUntilFirstError(t *testing.T) {
847847
t.Parallel()
848-
input := "[1]\ninvalid JSON value"
848+
input := "[1]\ninvalid JSON value\n[2]"
849849
want := "1\n"
850850
got, err := script.Echo(input).JQ(".[0]").String()
851851
if err == nil {
852-
t.Fatal("want error from invalid JSON input, got nil")
852+
t.Error("want error from invalid JSON input, got nil")
853853
}
854854
if want != got {
855855
t.Error(cmp.Diff(want, got))

0 commit comments

Comments
 (0)