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

sdk: add NewTestServerT, deprecate NewTestServer #6761

Merged
merged 2 commits into from
Nov 8, 2019

Conversation

mikemorris
Copy link
Contributor

To prevent nil pointer deref from t.Logf usage.

Looks like this had been worked around previously by adding a nil check in 6d4930d, but this formally deprecates the problematic method.

to prevent nil pointer deref from t.Logf usage
@mikemorris mikemorris requested a review from rboyer November 8, 2019 19:22
@mikemorris mikemorris requested a review from rboyer November 8, 2019 22:35
Copy link
Member

@rboyer rboyer left a comment

Choose a reason for hiding this comment

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

LGTM

@mikemorris mikemorris changed the title add NewTestServerT, deprecate NewTestServer sdk: add NewTestServerT, deprecate NewTestServer Nov 8, 2019
@mikemorris mikemorris merged commit 1112c69 into master Nov 8, 2019
@mikemorris mikemorris deleted the new-test-server-t branch November 8, 2019 22:51
mikemorris added a commit that referenced this pull request Nov 8, 2019
mikemorris added a commit that referenced this pull request Nov 8, 2019
* prevent nil pointer deref from t.Logf usage

* enforce non-nil *testing.T in NewTestServerT
mikemorris added a commit that referenced this pull request Nov 8, 2019
@ghost
Copy link

ghost commented Jan 25, 2020

Hey there,

This issue has been automatically locked because it is closed and there hasn't been any activity for at least 30 days.

If you are still experiencing problems, or still have questions, feel free to open a new one 👍.

@ghost ghost locked and limited conversation to collaborators Jan 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants