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

Issue 1441 blockquerywait #1443

Merged
merged 3 commits into from Jan 19, 2021
Merged

Issue 1441 blockquerywait #1443

merged 3 commits into from Jan 19, 2021

Conversation

eikenb
Copy link
Contributor

@eikenb eikenb commented Jan 16, 2021

Fix issue with block_query_wait setting.

Fixes #1441

The block_query_wait field is a pointer type on the struct. Nil typed
fields always need to be checked vs. nil in Merge() functions. I think
this was missed as it was put below Once which is of type bool and
doesn't need it (ie. followed bad pattern).
Don't use default value in tests that compare values.

When outputing test diffs, try harder to output values instead of
pointers ints.

Fix formatting of config's GoString() output.
@eikenb eikenb added the bug label Jan 16, 2021
@eikenb eikenb requested a review from a team January 16, 2021 01:59
Copy link
Contributor

@findkim findkim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like how you added the test first. 👍

@eikenb eikenb merged commit 8fb3626 into master Jan 19, 2021
@eikenb eikenb deleted the issue-1441-blockquerywait branch January 19, 2021 20:44
@eikenb eikenb added this to the 0.25.2 milestone Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overriding block_query_wait Doesn't Work
2 participants