go-chi/chi

Refactor throttle middleware tests as prone to intermittent failure

开放

#608 创建于 2021年3月25日

 (4 条评论) (0 个反应) (0 位负责人)Go (555 个派生)batch import
help wanted

仓库指标

星标
 (8,127 个星标)
PR 合并指标
 (平均合并 16小时 36分钟) (30 天内合并 2 个 PR)

描述

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.

贡献者指南