Merge pull request #49694 from huangjiuyuan/fix-selector-test

Automatic merge from submit-queue (batch tested with PRs 49712, 49694, 49714, 49670, 49717)

fix arg type error in printf

**What this PR does / why we need it**:
A value of wrong type is passed as arg to a `Errorf` in `vendor/k8s.io/apimachinery/pkg/fields/selector_test.go`, This PR fixes this problem.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:

**Release note**:

`NONE`
This commit is contained in:
Kubernetes Submit Queue 2017-07-28 08:15:02 -07:00 committed by GitHub
commit c06e8f03d9

View File

@ -387,7 +387,7 @@ func TestTransform(t *testing.T) {
t.Errorf("[%d] unexpected error during Transform: %v", i, err)
}
if result.Empty() != tc.isEmpty {
t.Errorf("[%d] expected empty: %t, got: %t", i, tc.isEmpty, result.Empty)
t.Errorf("[%d] expected empty: %t, got: %t", i, tc.isEmpty, result.Empty())
}
if result.String() != tc.result {
t.Errorf("[%d] unexpected result: %s", i, result.String())