Skip to content

Commit

Permalink
node pods e2e test: fix leak
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
  • Loading branch information
gaurav1086 committed May 31, 2020
1 parent 4602022 commit fef7ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/node/pods.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ var _ = SIGDescribe("Pods Extended", func() {
// create the pod, capture the change events, then delete the pod
start := time.Now()
created := podClient.Create(pod)
ch := make(chan []watch.Event)
ch := make(chan []watch.Event, 1)
go func() {
defer close(ch)
w, err := podClient.Watch(context.TODO(), metav1.ListOptions{
Expand Down

0 comments on commit fef7ce9

Please sign in to comment.