mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Support timeout in watch requests
This commit is contained in:
@@ -74,7 +74,7 @@ func TestPersistentVolumeRecycler(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
w, _ := testClient.PersistentVolumes().Watch(labels.Everything(), fields.Everything(), "0")
|
||||
w, _ := testClient.PersistentVolumes().Watch(labels.Everything(), fields.Everything(), api.ListOptions{})
|
||||
defer w.Stop()
|
||||
|
||||
_, _ = testClient.PersistentVolumes().Create(pv)
|
||||
@@ -100,7 +100,7 @@ func TestPersistentVolumeRecycler(t *testing.T) {
|
||||
// change the reclamation policy of the PV for the next test
|
||||
pv.Spec.PersistentVolumeReclaimPolicy = api.PersistentVolumeReclaimDelete
|
||||
|
||||
w, _ = testClient.PersistentVolumes().Watch(labels.Everything(), fields.Everything(), "0")
|
||||
w, _ = testClient.PersistentVolumes().Watch(labels.Everything(), fields.Everything(), api.ListOptions{})
|
||||
defer w.Stop()
|
||||
|
||||
_, _ = testClient.PersistentVolumes().Create(pv)
|
||||
|
||||
Reference in New Issue
Block a user