From: Mathias Gibbens <gibmat@debian.org>
Description: Skip flaky tests that routinely fail in Debian CI runs (see #1102485)
diff --git a/metrics/dogstatsd/dogstatsd_test.go b/metrics/dogstatsd/dogstatsd_test.go
index 7053dd2..6b842ef 100644
--- a/metrics/dogstatsd/dogstatsd_test.go
+++ b/metrics/dogstatsd/dogstatsd_test.go
@@ -78,6 +78,7 @@ func TestTiming(t *testing.T) {
 }
 
 func TestTimingSampled(t *testing.T) {
+	t.Skip("Skipping flaky test")
 	prefix, name := "dogstatsd.", "sampled_timing_test"
 	label, value := "internal", "external"
 	regex := `^` + prefix + name + `:([0-9\.]+)\|ms\|@0.03[0]*\|#` + label + `:` + value + `$`
diff --git a/metrics/influx/influx_test.go b/metrics/influx/influx_test.go
index 141a3ae..e9c81f5 100644
--- a/metrics/influx/influx_test.go
+++ b/metrics/influx/influx_test.go
@@ -15,6 +15,7 @@ import (
 )
 
 func TestCounter(t *testing.T) {
+	t.Skip("Skipping flaky test")
 	in := New(map[string]string{"a": "b"}, influxdb.BatchPointsConfig{}, log.NewNopLogger())
 	re := regexp.MustCompile(`influx_counter,a=b count=([0-9\.]+) [0-9]+`) // reverse-engineered :\
 	counter := in.NewCounter("influx_counter")
diff --git a/metrics/prometheus/prometheus_test.go b/metrics/prometheus/prometheus_test.go
index deb1586..0bdd6f5 100644
--- a/metrics/prometheus/prometheus_test.go
+++ b/metrics/prometheus/prometheus_test.go
@@ -18,6 +18,7 @@ import (
 )
 
 func TestCounter(t *testing.T) {
+	t.Skip("Skipping flaky test")
 	s := httptest.NewServer(promhttp.HandlerFor(stdprometheus.DefaultGatherer, promhttp.HandlerOpts{}))
 	defer s.Close()
 
@@ -80,6 +81,7 @@ func TestGauge(t *testing.T) {
 }
 
 func TestSummary(t *testing.T) {
+	t.Skip("Skipping flaky test")
 	s := httptest.NewServer(promhttp.HandlerFor(stdprometheus.DefaultGatherer, promhttp.HandlerOpts{}))
 	defer s.Close()
 
diff --git a/metrics/timer_test.go b/metrics/timer_test.go
index 2743e99..1de4a95 100644
--- a/metrics/timer_test.go
+++ b/metrics/timer_test.go
@@ -21,6 +21,7 @@ func TestTimerFast(t *testing.T) {
 }
 
 func TestTimerSlow(t *testing.T) {
+	t.Skip("Skipping flaky test")
 	h := generic.NewSimpleHistogram()
 	timer := metrics.NewTimer(h)
 	time.Sleep(250 * time.Millisecond)
@@ -33,6 +34,7 @@ func TestTimerSlow(t *testing.T) {
 }
 
 func TestTimerUnit(t *testing.T) {
+	t.Skip("Skipping flaky test")
 	for _, tc := range []struct {
 		name      string
 		unit      time.Duration
diff --git a/sd/lb/retry_test.go b/sd/lb/retry_test.go
index 7563980..36d4932 100644
--- a/sd/lb/retry_test.go
+++ b/sd/lb/retry_test.go
@@ -66,6 +66,7 @@ func TestRetryMaxSuccess(t *testing.T) {
 }
 
 func TestRetryTimeout(t *testing.T) {
+	t.Skip("Skipping flaky test")
 	var (
 		step    = make(chan struct{})
 		e       = func(context.Context, interface{}) (interface{}, error) { <-step; return struct{}{}, nil }
diff --git a/sd/zk/instancer_test.go b/sd/zk/instancer_test.go
index c450c3e..675141c 100644
--- a/sd/zk/instancer_test.go
+++ b/sd/zk/instancer_test.go
@@ -25,6 +25,7 @@ func TestInstancer(t *testing.T) {
 }
 
 func TestBadFactory(t *testing.T) {
+	t.Skip("Skipping flaky test")
 	client := newFakeClient()
 
 	instancer, err := NewInstancer(client, path, logger)
