--- FAIL: TestRequestRateLimit (0.04s)
client_test.go:63: Expected to sleep for at least a second, got 999.500002ms
FAIL
/shrug
/kind bug
/area prow
😂 it probably should not be doing real sleep in the test
😂 it probably should not be doing real sleep in the test
That was my first thought, I was all ready to write a bug report about how sleep is not deterministic enough for this, but actually it swaps out a reference to time.Sleep stored in a private package var (timeSleep). This is actually flaking because some time.Duration math flaked slightly below 1000ms and the test is for time.Second < slept.
We should probably fix this :joy:
/assign
FYI @cjwagner