mirror of
https://github.com/labstack/echo.git
synced 2025-01-26 03:20:08 +02:00
Fixed a router test
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
e3dcf6c6e7
commit
c7ddf65594
@ -592,14 +592,14 @@ func TestRouterAPI(t *testing.T) {
|
||||
}
|
||||
return nil
|
||||
}, nil)
|
||||
// Reset params
|
||||
params = make(Params, 5)
|
||||
c := &Context{params: params}
|
||||
h, _ := r.Find(route.method, route.path, params)
|
||||
if h == nil {
|
||||
t.Fatalf("handler not found, method=%s, path=%s", route.method, route.path)
|
||||
}
|
||||
h(c)
|
||||
// Reset params
|
||||
params = make(Params, 5)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user