go-chi/chi

Refactor throttle middleware tests as prone to intermittent failure

Aberta

#608 aberto em 25 de mar. de 2021

 (4 comentários) (0 reação) (0 responsável)Go (555 forks)batch import
help wanted

Métricas do repositório

Stars
 (8.127 estrelas)
Métricas de merge de PR
 (Mesclagem média 16h 36m) (2 fundiu PRs em 30d)

Description

https://github.com/go-chi/chi/blob/master/middleware/throttle_test.go

It's often that when I submit a PR, and the code runs through github ci, it will fail -- https://github.com/go-chi/chi/actions

I have to re-run the jobs to have it pass, it seems to be a timing issue. When running locally, it seems to work well pretty consistently, but I've seen the rare failing case.

Guia do colaborador