Test-infra: Prow GitHub Client test flakes

Created on 27 Oct 2017  Â·  4Comments  Â·  Source: kubernetes/test-infra

https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/test-infra/5137/pull-test-infra-bazel-canary/24/#prowgithubgo_default_test

--- 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

areprow kinbug ¯\_(ツ)¯

All 4 comments

😂 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.

Oh whoops, that can flake. This line in the test and this line in the code.

We should probably fix this :joy:
/assign
FYI @cjwagner

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BenTheElder picture BenTheElder  Â·  3Comments

stevekuznetsov picture stevekuznetsov  Â·  3Comments

sjenning picture sjenning  Â·  4Comments

lavalamp picture lavalamp  Â·  3Comments

chaosaffe picture chaosaffe  Â·  3Comments