@@ -129,7 +129,7 @@ func TestTimeoutOnTimeoutRouteErrorHandler(t *testing.T) {
129129 e := echo .New ()
130130 c := e .NewContext (req , rec )
131131
132- stopChan := make (chan struct {}, 0 )
132+ stopChan := make (chan struct {})
133133 err := m (func (c echo.Context ) error {
134134 <- stopChan
135135 return errors .New ("error in route after timeout" )
@@ -245,7 +245,7 @@ func TestTimeoutWithErrorMessage(t *testing.T) {
245245 e := echo .New ()
246246 c := e .NewContext (req , rec )
247247
248- stopChan := make (chan struct {}, 0 )
248+ stopChan := make (chan struct {})
249249 err := m (func (c echo.Context ) error {
250250 // NOTE: when difference between timeout duration and handler execution time is almost the same (in range of 100microseconds)
251251 // the result of timeout does not seem to be reliable - could respond timeout, could respond handler output
@@ -275,7 +275,7 @@ func TestTimeoutWithDefaultErrorMessage(t *testing.T) {
275275 e := echo .New ()
276276 c := e .NewContext (req , rec )
277277
278- stopChan := make (chan struct {}, 0 )
278+ stopChan := make (chan struct {})
279279 err := m (func (c echo.Context ) error {
280280 <- stopChan
281281 return c .String (http .StatusOK , "Hello, World!" )
0 commit comments