fix tests; convert IsPodActive to operate on *Pod

This commit is contained in:
Chao Xu
2016-08-17 13:05:37 -07:00
parent 331083727f
commit 594234d61c
5 changed files with 10 additions and 6 deletions

View File

@@ -287,7 +287,11 @@ func TestActivePodFiltering(t *testing.T) {
expectedNames.Insert(pod.Name)
}
got := FilterActivePods(podList.Items)
var podPointers []*api.Pod
for i := range podList.Items {
podPointers = append(podPointers, &podList.Items[i])
}
got := FilterActivePods(podPointers)
gotNames := sets.NewString()
for _, pod := range got {
gotNames.Insert(pod.Name)