-
Notifications
You must be signed in to change notification settings - Fork 8
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
chore: fix race condition in cron tests #1369
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ended up skipping two tests just in case you missed that
616c811
to
7282299
Compare
That second test isn't failing for me with -race, and github's testing seems to concur.
|
@@ -21,7 +21,6 @@ import ( | |||
) | |||
|
|||
func TestServiceWithMockDal(t *testing.T) { | |||
t.Skip("TODO(matt2e): Fails -race, fix me") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one sometimes fails - you'll likely need to run it multiple times to reproduce.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh, ok will retry more times
7282299
to
cc33f6b
Compare
@alecthomas found the issue |
mockDal's
attemptCountMap
was being read without getting a lock