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:
parent
0daffa37ce
commit
0b53f397ad
@ -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("*")
|
||||
|
Loading…
Reference in New Issue
Block a user