Unverified Commit 386d323f authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #76235 from mkumatag/fix_unit

Fix the formatting string
parents 3409a536 e9d1a905
...@@ -715,7 +715,7 @@ func TestCacherListerWatcher(t *testing.T) { ...@@ -715,7 +715,7 @@ func TestCacherListerWatcher(t *testing.T) {
} }
pl, ok := obj.(*example.PodList) pl, ok := obj.(*example.PodList)
if !ok { if !ok {
t.Fatalf("Expected PodList but got %t", pl) t.Fatalf("Expected PodList but got %v", pl)
} }
if len(pl.Items) != 3 { if len(pl.Items) != 3 {
t.Errorf("Expected PodList of length 3 but got %d", len(pl.Items)) t.Errorf("Expected PodList of length 3 but got %d", len(pl.Items))
...@@ -744,7 +744,7 @@ func TestCacherListerWatcherPagination(t *testing.T) { ...@@ -744,7 +744,7 @@ func TestCacherListerWatcherPagination(t *testing.T) {
} }
limit1, ok := obj1.(*example.PodList) limit1, ok := obj1.(*example.PodList)
if !ok { if !ok {
t.Fatalf("Expected PodList but got %t", limit1) t.Fatalf("Expected PodList but got %v", limit1)
} }
if len(limit1.Items) != 2 { if len(limit1.Items) != 2 {
t.Errorf("Expected PodList of length 2 but got %d", len(limit1.Items)) t.Errorf("Expected PodList of length 2 but got %d", len(limit1.Items))
...@@ -758,7 +758,7 @@ func TestCacherListerWatcherPagination(t *testing.T) { ...@@ -758,7 +758,7 @@ func TestCacherListerWatcherPagination(t *testing.T) {
} }
limit2, ok := obj2.(*example.PodList) limit2, ok := obj2.(*example.PodList)
if !ok { if !ok {
t.Fatalf("Expected PodList but got %t", limit2) t.Fatalf("Expected PodList but got %v", limit2)
} }
if limit2.Continue != "" { if limit2.Continue != "" {
t.Errorf("Expected list not to have Continue, but got %s", limit1.Continue) t.Errorf("Expected list not to have Continue, but got %s", limit1.Continue)
......
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