alphagov/cdn-acceptance-tests — pull request #53 by mikepea (2014-06-20 09:48:09+00:00)
Title: Stoppable HTTP Servers

This adds support for stopping a given HTTP Listener, ready for use in the Failover tests.

It is a reimplementation of #48, using the net/http/httptest HTTP Server rather than the regular net/http one. httptest keeps a record of client connections, and its Close() method shuts these down - exactly the functionality we need.