Unverified Commit 4bec356e authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #66818 from foxyriver/expectnoerror-check

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. need ExpectNoError check **What this PR does / why we need it**: err need ExpectNoError check **Release note**: ```release-note NONE ```
parents 007bf90e 4baeb09f
...@@ -543,6 +543,9 @@ func sendRestRequestToScheduler(c clientset.Interface, op string) (string, error ...@@ -543,6 +543,9 @@ func sendRestRequestToScheduler(c clientset.Interface, op string) (string, error
func getSchedulingLatency(c clientset.Interface) (*SchedulingMetrics, error) { func getSchedulingLatency(c clientset.Interface) (*SchedulingMetrics, error) {
result := SchedulingMetrics{} result := SchedulingMetrics{}
data, err := sendRestRequestToScheduler(c, "GET") data, err := sendRestRequestToScheduler(c, "GET")
if err != nil {
return nil, err
}
samples, err := extractMetricSamples(data) samples, err := extractMetricSamples(data)
if err != nil { if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment