fix(gather): missing ID for ScraperTarget
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>pull/10616/head
parent
ad7b756e45
commit
44820ce924
|
@ -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",
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue