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.
In the select lesson, it might be worth pointing out that
defer slowServer.Close()
inTestRacer()
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.