Skip to content

Commit b61c710

Browse files
committed
Merge branch 'main' into v3
2 parents 7e12388 + a6e257d commit b61c710

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to the project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [2.3.2] - 2022-05-02
6+
### Changed:
7+
- Improved the panic message that is generated by `httphelpers.BrokenConnectionHandler` to make it clearer that this is an intentional error (if for instance the panic stacktrace is logged by `http.Server`).
8+
59
## [2.3.1] - 2022-02-03
610
### Fixed:
711
- The `Assert`/`Require` methods in `matchers` now call `t.Helper()` (if that method exists) so the location of the failure will be more accurately reported.

httphelpers/handlers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ func BrokenConnectionHandler() http.Handler {
185185
return
186186
}
187187
}
188-
panic("connection deliberately closed by httphelpers.BrokenConnectionHandler")
188+
panic("connection deliberately closed by httphelpers.BrokenConnectionHandler; a panic stacktrace" +
189+
" here from the Go HTTP framework is expected and can be ignored")
189190
})
190191
}

0 commit comments

Comments
 (0)