mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
replace Fatalf to Errorf
This commit is contained in:
parent
f3e0bb0d41
commit
1ce85d8ffd
14
pkg/client/cache/listers_test.go
vendored
14
pkg/client/cache/listers_test.go
vendored
@ -142,9 +142,11 @@ func TestStoreToReplicationControllerLister(t *testing.T) {
|
||||
if err != nil && c.expectErr {
|
||||
continue
|
||||
} else if c.expectErr {
|
||||
t.Fatalf("Expected error, got none")
|
||||
t.Error("Expected error, got none")
|
||||
continue
|
||||
} else if err != nil {
|
||||
t.Fatalf("Unexpected error %#v", err)
|
||||
t.Errorf("Unexpected error %#v", err)
|
||||
continue
|
||||
}
|
||||
gotNames := make([]string, len(gotControllers))
|
||||
for ix := range gotControllers {
|
||||
@ -264,9 +266,11 @@ func TestStoreToDaemonSetLister(t *testing.T) {
|
||||
if err != nil && c.expectErr {
|
||||
continue
|
||||
} else if c.expectErr {
|
||||
t.Fatalf("Expected error, got none")
|
||||
t.Error("Expected error, got none")
|
||||
continue
|
||||
} else if err != nil {
|
||||
t.Fatalf("Unexpected error %#v", err)
|
||||
t.Errorf("Unexpected error %#v", err)
|
||||
continue
|
||||
}
|
||||
daemonSetNames := make([]string, len(daemonSets))
|
||||
for ix := range daemonSets {
|
||||
@ -320,7 +324,7 @@ func TestStoreToPodLister(t *testing.T) {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
}
|
||||
if exists {
|
||||
t.Errorf("Unexpected pod exists")
|
||||
t.Error("Unexpected pod exists")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user