Fix marathon tests

This commit is contained in:
Michael Kraus 2017-03-06 11:36:55 +01:00
parent 31252cc1b5
commit 690b49e503

View File

@ -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 {