Fixup unit tests

This commit is contained in:
derekwaynecarr
2014-10-23 16:55:48 -04:00
parent 341e404290
commit c6eb371c93
6 changed files with 52 additions and 55 deletions

View File

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