1
0
mirror of https://github.com/labstack/echo.git synced 2025-01-01 22:09:21 +02:00

Fixed static middleware - test

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2017-02-17 11:21:01 -08:00
parent 0daffa37ce
commit 0b53f397ad

View File

@ -11,7 +11,8 @@ import (
func TestStatic(t *testing.T) {
e := echo.New()
req := httptest.NewRequest(echo.GET, "/", nil)
// TODO: Once go1.6 is dropped, use `httptest.Request()`.
req, _ := http.NewRequest(echo.GET, "/", nil)
rec := httptest.NewRecorder()
c := e.NewContext(req, rec)
c.SetParamNames("*")