Daniel Nephin 0bb9c318b7 http: fix tests incorrectly using HTTPAddr to get the address of the
https server.

In #8234 I changed a few tests to use TestAgent.HTTPAddr() to find the
addr used in the test. Due to the way HTTPAddr() was implemented these
tests were passing, but I think the pass was incidental. HTTPAddr() was
not matching any servers, and was instead returning the last server,
which happened to be the one these tests wanted.

This commit fixes the implementation of HTTPAddr to panic if no match
was found. The tests which require an HTTPS server are changed to use
a new firstAddr() to look up the correct address.
2020-09-04 15:29:17 -04:00
..
2020-08-05 13:10:17 -04:00
2018-11-02 12:00:39 -05:00
2017-10-25 19:30:35 +02:00
2020-06-16 13:21:11 -04:00
2020-06-16 13:21:11 -04:00
2020-06-16 13:21:11 -04:00
2020-08-12 13:05:10 -04:00
2020-06-16 13:21:11 -04:00
2020-06-16 13:21:11 -04:00