Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
small fixes for test "should catch multi level errors"
Browse files Browse the repository at this point in the history
  • Loading branch information
im-kulikov committed Apr 30, 2019
1 parent 113abc6 commit 0ce7e5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helium_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ func TestHelium(t *testing.T) {
t.Run("should catch multi level errors", func(t *testing.T) {
var exitCode int

monkey.Patch(os.Exit, func(code int) { exitCode = code; panic(code) })
monkey.Patch(log.Fatal, func(...interface{}) { exitCode = 2; panic(exitCode) })
monkey.Patch(os.Exit, func(code int) { exitCode = code })
monkey.Patch(log.Fatal, func(...interface{}) { exitCode = 2 })

require.Panics(t, func() {
CatchTrace(TestError{
Expand Down

0 comments on commit 0ce7e5d

Please sign in to comment.