mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 04:36:00 +00:00
Support timeout in watch requests
This commit is contained in:
@@ -304,7 +304,8 @@ var _ = Describe("Pods", func() {
|
||||
}
|
||||
Expect(len(pods.Items)).To(Equal(0))
|
||||
w, err := podClient.Watch(
|
||||
labels.SelectorFromSet(labels.Set(map[string]string{"time": value})), fields.Everything(), pods.ListMeta.ResourceVersion)
|
||||
labels.SelectorFromSet(labels.Set(map[string]string{"time": value})), fields.Everything(),
|
||||
api.ListOptions{ResourceVersion: pods.ListMeta.ResourceVersion})
|
||||
if err != nil {
|
||||
Failf("Failed to set up watch: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user