Skip to content

Commit

Permalink
test: fix some broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-jones committed Sep 18, 2020
1 parent cac6512 commit 29b75a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/check-handle/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ func TestCheckHandle(t *testing.T) {
[]string{
"we couldn't open the file: open /tmp/not-found/a9e5b8c7-13f6-4acc-a0c8-978319cb738b: no such file or directory",
"",
"main.crash1:/main.go:21",
"main.crash1:/main.go:18",
"\tgoerr.Check(err, \"we couldn't open the file\")",
"main.main:/main.go:13",
"main.main:/main.go:10",
"\tif err := crash1(); err != nil {",
"",
"",
Expand Down
6 changes: 2 additions & 4 deletions examples/custom/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ func TestCustom(t *testing.T) {
[]string{
"http request failed",
"",
"{",
" \"StatusCode\": 500",
"}",
"{", " \"StatusCode\": 500", "}",
"",
"main.crash1:/main.go:19",
"main.crash1:/main.go:16",
"\treturn goerr.Wrap(&httpError{StatusCode: 500})",
"",
"",
Expand Down

0 comments on commit 29b75a7

Please sign in to comment.