Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivaka committed Jan 29, 2024
1 parent 83958a2 commit c8f946c
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions kube/watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,23 +95,7 @@ func TestWatcher(t *testing.T) {
},
}

// pod exited a while ago, and should not be found
p4 := &corev1.Pod{
ObjectMeta: metav1.ObjectMeta{
Name: "p4",
Namespace: "team1",
CreationTimestamp: thirtySecsAgo,
},
Spec: corev1.PodSpec{
NodeName: n1.Name,
},
Status: corev1.PodStatus{
PodIP: "10.14.7.13",
Phase: corev1.PodSucceeded,
},
}

clientset := fake.NewSimpleClientset(n1, p1, p2, p3, p4)
clientset := fake.NewSimpleClientset(n1, p1, p2, p3)

informersFactory := informers.NewSharedInformerFactoryWithOptions(clientset, 30*time.Second)
podsInformer := informersFactory.Core().V1().Pods().Informer()
Expand Down

0 comments on commit c8f946c

Please sign in to comment.