fix(gather): missing ID for ScraperTarget

Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
pull/10616/head
Leonardo Di Donato 2018-10-09 15:33:54 +02:00 committed by Chris Goller
parent ad7b756e45
commit 44820ce924
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import (
"github.com/influxdata/platform"
influxlogger "github.com/influxdata/platform/logger"
"github.com/influxdata/platform/mock"
platformtesting "github.com/influxdata/platform/testing"
)
func TestScheduler(t *testing.T) {
@ -31,6 +32,7 @@ func TestScheduler(t *testing.T) {
Metrics: make(map[int64]Metrics),
Targets: []platform.ScraperTarget{
{
ID: platformtesting.MustIDFromString("3a0d0a6365646120"),
Type: platform.PrometheusScraperType,
URL: ts.URL + "/metrics",
},