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

Select lesson clarity about defer and test execution #679

Open
mud5150 opened this issue Jun 16, 2023 · 0 comments
Open

Select lesson clarity about defer and test execution #679

mud5150 opened this issue Jun 16, 2023 · 0 comments

Comments

@mud5150
Copy link

mud5150 commented Jun 16, 2023

In the select lesson, it might be worth pointing out that defer slowServer.Close() in TestRacer() will take as long as the longest timeout. This is eluded to, but I immediately thought I had done something wrong since the test blocked for the amount of time of the slowest http response. On the upside, it was a good learning experience to figure it out.

P.S. These lessons are great. Thanks for putting this together.

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

No branches or pull requests

1 participant