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 合併指標
 (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.

貢獻者指南