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

Fixes #950 integration test failing on go 1.13 #955

Merged

Conversation

samos123
Copy link
Contributor

@samos123 samos123 commented Jan 7, 2020

From Golang 1.13 release notes:
Testing flags are now registered in the new Init function, which is
invoked by the generated main function for the test. As a result,
testing flags are now only registered when running a test binary, and
packages that call flag.Parse during package initialization may cause
tests to fail.

I tested this pull request with make integration-test on both golang 1.13 and 1.12. However on my pixelbook I wasn't able to complete finishing all integration tests within 30 minutes.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes
Fix integration tests for Go 1.13

From Golang 1.13 release notes:
Testing flags are now registered in the new Init function, which is
invoked by the generated main function for the test. As a result,
testing flags are now only registered when running a test binary, and
packages that call flag.Parse during package initialization may cause
tests to fail.
@googlebot googlebot added the cla: yes CLA signed by all commit authors label Jan 7, 2020
@samos123 samos123 requested review from tejal29 and cvgw January 7, 2020 23:35
@tejal29 tejal29 merged commit ac8626c into GoogleContainerTools:master Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes CLA signed by all commit authors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants