Skip to content

Commit

Permalink
Added error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
corbadoman committed Oct 14, 2024
1 parent 1ea3ffa commit 08e5b71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/session/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ func newSession(issuer string) (*session.Impl, error) {

server := &http.Server{Addr: "localhost:8081", Handler: mockServer} // nolint:gosec
go func() {
_ = server.ListenAndServe()
if err := server.ListenAndServe(); err != nil {
panic(err)
}
}()

// Config
Expand Down

0 comments on commit 08e5b71

Please sign in to comment.