fix error handling test for...maybe go 1.9
this mysteriously started failing; it looks like two GET requests are
made. maybe some net/http client behavior changed?
closing the server is a bit cleaner anyway.
package integration_test
import (
- "net/http"
"os/exec"
. "github.com/onsi/ginkgo"
@@ -71,11 +70,7 @@ var _ = Describe("Fly CLI", func() {
)
BeforeEach(func() {
- atcServer.AppendHandlers(
- func(w http.ResponseWriter, r *http.Request) {
- atcServer.CloseClientConnections()
- },
- )
+ atcServer.Close()
flyCmd = exec.Command(flyPath, "-t", targetName, "containers")
})
