go-libp2p icon indicating copy to clipboard operation
go-libp2p copied to clipboard

autonat: flaky TestAutoNATServiceDialRateLimiter test

Open marten-seemann opened this issue 3 years ago • 2 comments

  === RUN   TestAutoNATServiceDialRateLimiter
      svc_test.go:117: Dial back succeeded unexpectedly!
  --- FAIL: TestAutoNATServiceDialRateLimiter (0.32s)

marten-seemann avatar Jan 10 '22 15:01 marten-seemann

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 avatar Feb 06 '22 09:02 marten-seemann

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

marten-seemann avatar Jun 30 '22 18:06 marten-seemann