Skip to content

Commit

Permalink
Add error check without ErrorHandler back to Grid test
Browse files Browse the repository at this point in the history
  • Loading branch information
pericles-tpt committed Sep 21, 2023
1 parent 70d195d commit d8cc18a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion godal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4253,7 +4253,8 @@ func TestGridInvalidSwitch(t *testing.T) {
t.Error(err)
return
}

_, err = vrtDs.Grid("/vsimem/test.tiff", []string{"-invalidswitch"})
assert.Error(t, err)
ehc := eh()
_, err = vrtDs.Grid("/vsimem/test.tiff", []string{"-invalidswitch"}, ErrLogger(ehc.ErrorHandler))
assert.Error(t, err)
Expand Down

0 comments on commit d8cc18a

Please sign in to comment.