(url string)
| 91 | } |
| 92 | |
| 93 | func PostRequest(url string) (*http.Response, error) { |
| 94 | const timeout = 1 * time.Second |
| 95 | |
| 96 | client := &http.Client{Timeout: timeout} |
| 97 | return client.Post(url, "", strings.NewReader("")) |
| 98 | } |
| 99 | |
| 100 | // TimeToMilliseconds returns the input time as milliseconds, using the same |
| 101 | // formula used by Prometheus in order to get the same timestamp when asserting |
no outgoing calls