Skip to content

Issue 1441 blockquerywait#1443

Merged
eikenb merged 3 commits into
masterfrom
issue-1441-blockquerywait
Jan 19, 2021
Merged

Issue 1441 blockquerywait#1443
eikenb merged 3 commits into
masterfrom
issue-1441-blockquerywait

Conversation

@eikenb
Copy link
Copy Markdown
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
Copy Markdown
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