CloseClientConnections test uses http.Post instead of http.Get to avoid retries
diff --git a/ghttp/test_server_test.go b/ghttp/test_server_test.go index 79f3825..b9edc62 100644 --- a/ghttp/test_server_test.go +++ b/ghttp/test_server_test.go
@@ -43,7 +43,7 @@ It("clears all handlers and call counts", func() { s.Reset() Ω(s.ReceivedRequests()).Should(HaveLen(0)) - Ω(func() {s.GetHandler(0)}).Should(Panic()) + Ω(func() { s.GetHandler(0) }).Should(Panic()) }) }) @@ -58,7 +58,7 @@ }, ) - resp, err := http.Get(s.URL()) + resp, err := http.Post(s.URL(), "application/octet-stream", bytes.NewReader([]byte{})) Ω(err).ShouldNot(HaveOccurred()) Ω(resp.StatusCode).Should(Equal(200)) @@ -67,7 +67,7 @@ Ω(err).ShouldNot(HaveOccurred()) Ω(body).Should(Equal([]byte("hello"))) - resp, err = http.Get(s.URL()) + resp, err = http.Post(s.URL(), "application/octet-stream", bytes.NewReader([]byte{})) Ω(err).Should(HaveOccurred()) Ω(resp).Should(BeNil()) })