From ca222a14de0156d79b287364cbb83d4afe0ea90a Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Tue, 1 Dec 2015 09:45:25 -0700 Subject: [PATCH] Make Prometheus output tests skipped in short mode. Because they do some networking. Fixes #385 --- outputs/prometheus_client/prometheus_client_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/outputs/prometheus_client/prometheus_client_test.go b/outputs/prometheus_client/prometheus_client_test.go index ed1b4f10235b2..6bb1ec614053c 100644 --- a/outputs/prometheus_client/prometheus_client_test.go +++ b/outputs/prometheus_client/prometheus_client_test.go @@ -13,6 +13,9 @@ import ( var pTesting *PrometheusClient func TestPrometheusWritePointEmptyTag(t *testing.T) { + if testing.Short() { + t.Skip("Skipping integration test in short mode") + } p := &prometheus.Prometheus{ Urls: []string{"http://localhost:9126/metrics"}, @@ -50,6 +53,9 @@ func TestPrometheusWritePointEmptyTag(t *testing.T) { } func TestPrometheusWritePointTag(t *testing.T) { + if testing.Short() { + t.Skip("Skipping integration test in short mode") + } p := &prometheus.Prometheus{ Urls: []string{"http://localhost:9126/metrics"},