mirror of
https://github.com/prometheus/prometheus
synced 2024-12-25 07:52:28 +00:00
Fix marathon tests
This commit is contained in:
parent
31252cc1b5
commit
690b49e503
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user