asobti / kube-monkey

An implementation of Netflix's Chaos Monkey for Kubernetes clusters
Apache License 2.0
2.96k stars 252 forks source link

TestDurationToKillTime is flaky #126

Open asobti opened 5 years ago

asobti commented 5 years ago

Fails occasionally because the result of the test is time-dependent: https://github.com/asobti/kube-monkey/blob/ebe3dbf56e1b30ffaeae51baa13528f302cf7147/chaos/chaos_test.go#L149-L152

--- FAIL: TestSuite (0.02s)
    --- FAIL: TestSuite/TestDurationToKillTime (0.00s)
        chaos_test.go:151: 
                Error Trace:    chaos_test.go:151
                Error:          Max difference between 2018-11-25 05:07:14.010708836 +0000 UTC m=+0.017815678 and 2018-11-25 05:07:14.011653307 +0000 UTC m=+0.018760214 allowed is 57.703µs, but difference was -944.536µs
                Test:           TestSuite/TestDurationToKillTime
asobti commented 5 years ago

Disabled test in #133 until it is fixed