go-chi/chi
Refactor throttle middleware tests as prone to intermittent failure
Offen
#608 geöffnet am 25.03.2021
help wanted
Repository-Metriken
- Stars
- (8.127 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 16h 36m) (2 gemergte PRs in 30 T)
Beschreibung
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.