From 46f7a60026751153107c68a48f768244b7c54d2f Mon Sep 17 00:00:00 2001 From: yuexiao-wang Date: Fri, 24 Nov 2017 10:01:54 +0800 Subject: [PATCH] wrong number of args in apiserver/pkg Signed-off-by: yuexiao-wang Kubernetes-commit: 235df842fafe21fe90f5691ca5eb1ab775fbe54d --- pkg/registry/rest/resttest/resttest.go | 4 ++-- pkg/server/filters/compression_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/registry/rest/resttest/resttest.go b/pkg/registry/rest/resttest/resttest.go index 083ac1dea..f7244e2b7 100644 --- a/pkg/registry/rest/resttest/resttest.go +++ b/pkg/registry/rest/resttest/resttest.go @@ -1330,7 +1330,7 @@ func (t *Tester) testListTableConversion(obj runtime.Object, assignFn AssignFunc t.Errorf("column %d has unexpected format: %q with type %q", j, column.Format, column.Type) } if column.Priority < 0 || column.Priority > 2 { - t.Errorf("column %d has unexpected priority", j, column.Priority) + t.Errorf("column %d has unexpected priority: %q", j, column.Priority) } if len(column.Description) == 0 { t.Errorf("column %d has no description", j) @@ -1341,7 +1341,7 @@ func (t *Tester) testListTableConversion(obj runtime.Object, assignFn AssignFunc } for i, row := range table.Rows { if len(row.Cells) != len(table.ColumnDefinitions) { - t.Errorf("row %d did not have the correct number of cells: %d in %v", len(table.ColumnDefinitions), row.Cells) + t.Errorf("row %d did not have the correct number of cells: %d in %v", i, len(table.ColumnDefinitions), row.Cells) } for j, cell := range row.Cells { // do not add to this test without discussion - may break clients diff --git a/pkg/server/filters/compression_test.go b/pkg/server/filters/compression_test.go index 931c90515..07d46d5bf 100644 --- a/pkg/server/filters/compression_test.go +++ b/pkg/server/filters/compression_test.go @@ -94,7 +94,7 @@ func TestCompression(t *testing.T) { } body, err := ioutil.ReadAll(reader) if err != nil { - t.Fatal("unexpected error: %v", err) + t.Fatalf("unexpected error: %v", err) } if !bytes.Equal(body, responseData) { t.Fatalf("Expected response body %s to equal %s", body, responseData)