Make Prometheus output tests skipped in short mode.

Because they do some networking.

Fixes #385
This commit is contained in:
Cameron Sparr 2015-12-01 09:45:25 -07:00
parent 4aa94ee290
commit ca222a14de
1 changed files with 6 additions and 0 deletions

View File

@ -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"},