You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- fix double "/" in endpoint URL leading to 404 errors on some metrics API (was not visible in E2E tests as server ran by ghcr.io/kedacore/tests-metrics-api seems to accomodate it anyway)
- metrics_api_test.go : fix getUpdateUrlsForAllMetricAllMetricsServerReplicas() to retry more transient failure cases & fail test after 5 failed retries
Signed-off-by: julian GUINARD <[email protected]>
t.Fatalf("No pods found with the given selector.")
282
-
returnnil
291
+
returnretryFunc(fmt.Sprintf("No pods found with the given selector."))
283
292
}
284
293
285
294
iflen(pods.Items) !=nbReplicasForMetricsServer {
286
-
t.Fatalf("Number of replicas of metrics server (%d) does not match expected value (%d).", len(pods.Items), nbReplicasForMetricsServer)
287
-
returnnil
295
+
returnretryFunc(fmt.Sprintf("Number of replicas of metrics server (%d) does not match expected value (%d).", len(pods.Items), nbReplicasForMetricsServer))
t.Logf("Pod %s was expected to be running and to have an IP. Retry calling getUpdateUrlsForAllMetricAllMetricsServerReplicas() after 1 second", pod.Name)
0 commit comments