Merge pull request #76235 from mkumatag/fix_unit

Fix the formatting string
This commit is contained in:
Kubernetes Prow Robot 2019-04-08 14:40:56 -07:00 committed by GitHub
commit 386d323f5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)