libp2p / go-libp2p

libp2p implementation in Go
MIT License
5.92k stars 1.04k forks source link

autonat: flaky TestAutoNATServiceDialRateLimiter test #1295

Open marten-seemann opened 2 years ago

marten-seemann commented 2 years ago

  === RUN   TestAutoNATServiceDialRateLimiter
      svc_test.go:117: Dial back succeeded unexpectedly!
  --- FAIL: TestAutoNATServiceDialRateLimiter (0.32s)
marten-seemann commented 2 years ago

The reason is most likely that CI is really slow and executing the dials more than 200 (400?) ms apart, which is why rate limiting doesn't kick in.

marten-seemann commented 2 years ago

  === RUN   TestAutoNATServiceDialRateLimiter
      svc_test.go:112: AutoNAT error: dial failed (E_DIAL_ERROR)
  --- FAIL: TestAutoNATServiceDialRateLimiter (0.37s)