Skip to content

internal/mysql: Port tests to endtoend package #315

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
Feb 4, 2020
Merged

Conversation

kyleconroy
Copy link
Collaborator

@kyleconroy kyleconroy commented Jan 31, 2020

As part of my work on #302, I wanted to avoid having to update the MySQL tests to use the new configuration format. When tests are written using the end-to-end framework, none of the internal structures leak into the tests.

@kyleconroy
Copy link
Collaborator Author

@cmoog Care to take a look?

Comment on lines +10 to +11
john FirstNameType = "john"
albert FirstNameType = "albert"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We're going to have to fix the naming here. These should be

const (
	FirstNameJohn   FirstNameType = "john"
	FirstNameAlbert FirstNameType = "albert"
)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's fine for now, will address it in another PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good find. I must have written some unfortunately narrow tests that didn't catch that before.

@cmoog
Copy link
Contributor

cmoog commented Feb 3, 2020

Looks good to me 👍

@kyleconroy kyleconroy merged commit 19b56aa into master Feb 4, 2020
@kyleconroy kyleconroy deleted the mysql-tests branch February 4, 2020 01:18
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