Skip to content

Fix dsn_test.go to work with Go 1.7 #459

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

Merged
merged 1 commit into from
Jun 2, 2016
Merged

Fix dsn_test.go to work with Go 1.7 #459

merged 1 commit into from
Jun 2, 2016

Conversation

dsnet
Copy link
Contributor

@dsnet dsnet commented Jun 1, 2016

Direct string match on fmt.Sprintf output is a poor way to do testing. Instead, compare actual concrete structures.

Prior to this commit, the test fails on Go 1.7 because of http://golang.org/issue/14058

@dsnet
Copy link
Contributor Author

dsnet commented Jun 2, 2016

No need for entry in AUTHORS file since I'm under the Google organization.

@julienschmidt
Copy link
Member

LGTM

@julienschmidt julienschmidt merged commit 3654d25 into go-sql-driver:master Jun 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants