(host, body string)
| 189 | } |
| 190 | |
| 191 | func newRequest(host, body string) *http.Request { |
| 192 | // create a new req |
| 193 | req := httptest.NewRequest(http.MethodPost, host, strings.NewReader(body)) |
| 194 | |
| 195 | ctx := context.Background() |
| 196 | |
| 197 | req = req.WithContext(ctx) |
| 198 | |
| 199 | return req |
| 200 | } |
| 201 | |
| 202 | func newHostsCluster(hs []string) *cluster { |
| 203 | // set up cluster, replicas, hosts |
no outgoing calls
no test coverage detected