Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

TestTimerResets flaps when run with race detector #8

Open
zwass opened this issue Aug 1, 2017 · 2 comments
Open

TestTimerResets flaps when run with race detector #8

zwass opened this issue Aug 1, 2017 · 2 comments
Labels

Comments

@zwass
Copy link
Contributor

zwass commented Aug 1, 2017

Not always, but typically using -count 100 is sufficient to see a few failures:

$ go test -race -run TestTimerResets -count 100
--- FAIL: TestTimerResets (0.05s)
	mock_test.go:14: expected timer to get after reset when interval is up after restarted
--- FAIL: TestTimerResets (0.05s)
	mock_test.go:14: expected timer to get after reset when interval is up after restarted
--- FAIL: TestTimerResets (0.05s)
	mock_test.go:14: expected timer to get after reset when interval is up after restarted
FAIL
exit status 1
FAIL	github.com/mixer/clock	3.573s
@connor4312
Copy link
Member

THanks for the issue! I'll try to take a look at this soon.

@zwass
Copy link
Contributor Author

zwass commented Aug 14, 2017

I should note that I have not noticed any problems due to this besides the test failure, so from my perspective it is not urgent. Thank you!

@connor4312 connor4312 added the bug label Aug 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants