From e9d1a90535e6afd32a65c6a99222229a8d9e8665 Mon Sep 17 00:00:00 2001 From: Manjunath A Kumatagi Date: Sun, 7 Apr 2019 12:01:07 +0530 Subject: [PATCH] Fix the formatting string --- .../src/k8s.io/apiserver/pkg/storage/tests/cacher_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/staging/src/k8s.io/apiserver/pkg/storage/tests/cacher_test.go b/staging/src/k8s.io/apiserver/pkg/storage/tests/cacher_test.go index 619d505305e..95ebfba4e8a 100644 --- a/staging/src/k8s.io/apiserver/pkg/storage/tests/cacher_test.go +++ b/staging/src/k8s.io/apiserver/pkg/storage/tests/cacher_test.go @@ -715,7 +715,7 @@ func TestCacherListerWatcher(t *testing.T) { } pl, ok := obj.(*example.PodList) if !ok { - t.Fatalf("Expected PodList but got %t", pl) + t.Fatalf("Expected PodList but got %v", pl) } if len(pl.Items) != 3 { t.Errorf("Expected PodList of length 3 but got %d", len(pl.Items)) @@ -744,7 +744,7 @@ func TestCacherListerWatcherPagination(t *testing.T) { } limit1, ok := obj1.(*example.PodList) if !ok { - t.Fatalf("Expected PodList but got %t", limit1) + t.Fatalf("Expected PodList but got %v", limit1) } if len(limit1.Items) != 2 { t.Errorf("Expected PodList of length 2 but got %d", len(limit1.Items)) @@ -758,7 +758,7 @@ func TestCacherListerWatcherPagination(t *testing.T) { } limit2, ok := obj2.(*example.PodList) if !ok { - t.Fatalf("Expected PodList but got %t", limit2) + t.Fatalf("Expected PodList but got %v", limit2) } if limit2.Continue != "" { t.Errorf("Expected list not to have Continue, but got %s", limit1.Continue)