From 690b49e503fbe8e65c969ae189a96bd5065de1cf Mon Sep 17 00:00:00 2001 From: Michael Kraus Date: Mon, 6 Mar 2017 11:36:55 +0100 Subject: [PATCH] Fix marathon tests --- discovery/marathon/marathon_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discovery/marathon/marathon_test.go b/discovery/marathon/marathon_test.go index c53d5adfb1..5624858fb4 100644 --- a/discovery/marathon/marathon_test.go +++ b/discovery/marathon/marathon_test.go @@ -98,7 +98,7 @@ func marathonTestAppList(labels map[string]string, runningTasks int) *AppList { func TestMarathonSDSendGroup(t *testing.T) { var ( ch = make(chan []*config.TargetGroup, 1) - client = func(client *http.Client, url string) (*AppList, error) { + client = func(client *http.Client, url, token string) (*AppList, error) { return marathonTestAppList(marathonValidLabel, 1), nil } ) @@ -147,7 +147,7 @@ func TestMarathonSDRemoveApp(t *testing.T) { t.Fatalf("Got error on first update: %s", err) } - md.appsClient = func(client *http.Client, url string) (*AppList, error) { + md.appsClient = func(client *http.Client, url, token string) (*AppList, error) { return marathonTestAppList(marathonValidLabel, 0), nil } if err := md.updateServices(context.Background(), ch); err != nil {