Skip to content

Commit

Permalink
fix pod garbage collection test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedanese committed Mar 8, 2016
1 parent e0431d8 commit d8eaed9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/e2e/garbage_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ var _ = Describe("Garbage collector [Slow]", func() {
gcThreshold := 100

By(fmt.Sprintf("Waiting for gc controller to gc all but %d pods", gcThreshold))
pollErr := wait.Poll(30*time.Second, timeout, func() (bool, error) {
pollErr := wait.Poll(1*time.Minute, timeout, func() (bool, error) {
pods, err = f.Client.Pods(f.Namespace.Name).List(api.ListOptions{})
if err != nil {
Logf("Failed to list pod %v", err)
Expand All @@ -84,9 +84,11 @@ func createTerminatingPod(f *Framework) (*api.Pod, error) {
pod := &api.Pod{
ObjectMeta: api.ObjectMeta{
Name: string(uuid),
Annotations: map[string]string{
"scheduler.alpha.kubernetes.io/name": "please don't schedule my pods",
},
},
Spec: api.PodSpec{
NodeName: "nonexistant-node",
Containers: []api.Container{
{
Name: string(uuid),
Expand Down

0 comments on commit d8eaed9

Please sign in to comment.