Skip to content

Commit

Permalink
Adjust tests for golang 1.21+ behavior changes when handling panic(nil)
Browse files Browse the repository at this point in the history
  • Loading branch information
geofffranks authored and ebroberson committed Sep 9, 2024
1 parent ee990d6 commit 6fa4a74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"net/http"
"runtime"
"strconv"
"time"

Expand Down Expand Up @@ -368,7 +369,7 @@ var _ = Describe("Logger", func() {
})

It("panics with the provided error (i.e. nil)", func() {
Expect(fatalErr).To(BeNil())
Expect(fatalErr).To(MatchError(&runtime.PanicNilError{}))
})
})

Expand Down

0 comments on commit 6fa4a74

Please sign in to comment.