Skip to content

Commit

Permalink
Make Prometheus output tests skipped in short mode.
Browse files Browse the repository at this point in the history
Because they do some networking.

Fixes #385
  • Loading branch information
sparrc committed Dec 1, 2015
1 parent 4aa94ee commit ca222a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions outputs/prometheus_client/prometheus_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down Expand Up @@ -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"},
Expand Down

0 comments on commit ca222a1

Please sign in to comment.