From 818dda72db651031a05f8a19d8122e3b80fae549 Mon Sep 17 00:00:00 2001 From: Krasi Georgiev Date: Fri, 26 Jan 2018 13:31:59 +0000 Subject: [PATCH] updated the sd tests --- discovery/manager_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discovery/manager_test.go b/discovery/manager_test.go index 2eb86605e..cbfd651b3 100644 --- a/discovery/manager_test.go +++ b/discovery/manager_test.go @@ -655,7 +655,7 @@ func TestTargetUpdatesOrder(t *testing.T) { for testIndex, testCase := range testCases { ctx, cancel := context.WithCancel(context.Background()) defer cancel() - discoveryManager := NewManager(nil) + discoveryManager := NewManager(ctx, nil) var totalUpdatesCount int @@ -741,8 +741,8 @@ scrape_configs: } ctx, cancel := context.WithCancel(context.Background()) defer cancel() - discoveryManager := NewManager(nil) - go discoveryManager.Run(ctx) + discoveryManager := NewManager(ctx, nil) + go discoveryManager.Run() c := make(map[string]sd_config.ServiceDiscoveryConfig) for _, v := range cfg.ScrapeConfigs {