mirror of
https://github.com/labstack/echo.git
synced 2025-07-03 00:56:59 +02:00
add supprt for go1.20 http.rwUnwrapper
This commit is contained in:
@ -72,3 +72,11 @@ func TestResponse_ChangeStatusCodeBeforeWrite(t *testing.T) {
|
||||
|
||||
assert.Equal(t, http.StatusOK, rec.Code)
|
||||
}
|
||||
|
||||
func TestResponse_Unwrap(t *testing.T) {
|
||||
e := New()
|
||||
rec := httptest.NewRecorder()
|
||||
res := &Response{echo: e, Writer: rec}
|
||||
|
||||
assert.Equal(t, rec, res.Unwrap())
|
||||
}
|
||||
|
Reference in New Issue
Block a user