Signed-off-by: Daniel Swarbrick <daniel.swarbrick@cloud.ionos.com>
func TestRedirectToTLSHostWorks(t *testing.T) {
if testing.Short() {
- t.Skip("skipping network dependant test")
+ t.Skip("skipping network dependent test")
}
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "https://prometheus.io", http.StatusFound)
}
func TestChooseProtocol(t *testing.T) {
+ if testing.Short() {
+ t.Skip("skipping network dependent test")
+ }
ctx := context.Background()
registry := prometheus.NewPedanticRegistry()
w := log.NewSyncWriter(os.Stderr)