mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 14:11:14 +00:00
Fixup unit tests
This commit is contained in:
@@ -385,7 +385,7 @@ func TestGetPodCloud(t *testing.T) {
|
||||
|
||||
func TestMakePodStatus(t *testing.T) {
|
||||
fakeClient := client.Fake{
|
||||
Minions: api.MinionList{
|
||||
MinionsList: api.MinionList{
|
||||
Items: []api.Minion{
|
||||
{
|
||||
ObjectMeta: api.ObjectMeta{Name: "machine"},
|
||||
@@ -517,7 +517,7 @@ func TestMakePodStatus(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for _, test := range tests {
|
||||
if status, err := getPodStatus(test.pod, &fakeClient); status != test.status {
|
||||
if status, err := getPodStatus(test.pod, fakeClient.Minions()); status != test.status {
|
||||
t.Errorf("In test %s, expected %v, got %v", test.test, test.status, status)
|
||||
if err != nil {
|
||||
t.Errorf("In test %s, unexpected error: %v", test.test, err)
|
||||
|
Reference in New Issue
Block a user