Merge pull request #15815 from mqliang/lister_test

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot 2015-10-26 11:30:44 -07:00
commit a094a6e3de

View File

@ -142,9 +142,11 @@ func TestStoreToReplicationControllerLister(t *testing.T) {
if err != nil && c.expectErr { if err != nil && c.expectErr {
continue continue
} else if c.expectErr { } else if c.expectErr {
t.Fatalf("Expected error, got none") t.Error("Expected error, got none")
continue
} else if err != nil { } else if err != nil {
t.Fatalf("Unexpected error %#v", err) t.Errorf("Unexpected error %#v", err)
continue
} }
gotNames := make([]string, len(gotControllers)) gotNames := make([]string, len(gotControllers))
for ix := range gotControllers { for ix := range gotControllers {
@ -264,9 +266,11 @@ func TestStoreToDaemonSetLister(t *testing.T) {
if err != nil && c.expectErr { if err != nil && c.expectErr {
continue continue
} else if c.expectErr { } else if c.expectErr {
t.Fatalf("Expected error, got none") t.Error("Expected error, got none")
continue
} else if err != nil { } else if err != nil {
t.Fatalf("Unexpected error %#v", err) t.Errorf("Unexpected error %#v", err)
continue
} }
daemonSetNames := make([]string, len(daemonSets)) daemonSetNames := make([]string, len(daemonSets))
for ix := range daemonSets { for ix := range daemonSets {
@ -491,7 +495,7 @@ func TestStoreToPodLister(t *testing.T) {
t.Errorf("unexpected error: %v", err) t.Errorf("unexpected error: %v", err)
} }
if exists { if exists {
t.Errorf("Unexpected pod exists") t.Error("Unexpected pod exists")
} }
} }