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

Commit 0ce7e5d

Browse files
committed
small fixes for test "should catch multi level errors"
1 parent 113abc6 commit 0ce7e5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helium_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ func TestHelium(t *testing.T) {
268268
t.Run("should catch multi level errors", func(t *testing.T) {
269269
var exitCode int
270270

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

274274
require.Panics(t, func() {
275275
CatchTrace(TestError{

0 commit comments

Comments
 (0)