Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestDurationToKillTime is flaky #126

Open
asobti opened this issue Nov 25, 2018 · 1 comment
Open

TestDurationToKillTime is flaky #126

asobti opened this issue Nov 25, 2018 · 1 comment

Comments

@asobti
Copy link
Owner

asobti commented Nov 25, 2018

Fails occasionally because the result of the test is time-dependent:

func (s *ChaosTestSuite) TestDurationToKillTime() {
t := s.chaos.DurationToKillTime()
s.WithinDuration(s.chaos.KillAt(), time.Now(), t+time.Millisecond)
}

--- 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
Copy link
Owner Author

asobti commented Dec 8, 2018

Disabled test in #133 until it is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant