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
```
pull/8/head
Kubernetes Submit Queue 2018-08-01 06:02:37 -07:00 committed by GitHub
commit 4bec356e01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -543,6 +543,9 @@ func sendRestRequestToScheduler(c clientset.Interface, op string) (string, error
func getSchedulingLatency(c clientset.Interface) (*SchedulingMetrics, error) {
result := SchedulingMetrics{}
data, err := sendRestRequestToScheduler(c, "GET")
if err != nil {
return nil, err
}
samples, err := extractMetricSamples(data)
if err != nil {