Codebase list golang-gomega / 5ec9870
Attempting to fix the tests Jatin Naik 8 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
5454 io.WriteString(w, req.RemoteAddr)
5555 },
5656 )
57
58 resp, err := http.Get(s.URL())
57 client := http.Client{Transport: &http.Transport{DisableKeepAlives: true}}
58 resp, err := client.Get(s.URL())
5959 Ω(err).ShouldNot(HaveOccurred())
6060 Ω(resp.StatusCode).Should(Equal(200))
6161
6565
6666 s.CloseClientConnections()
6767
68 resp, err = http.Get(s.URL())
68 resp, err = client.Get(s.URL())
6969 Ω(err).ShouldNot(HaveOccurred())
7070 Ω(resp.StatusCode).Should(Equal(200))
7171