Revert "client-go: add retry logic for Watch and Stream"

This reverts commit 607d3819498e64d969407c3d7cbbb8f53d98f0d4.

Kubernetes-commit: e35af41a1236943b6510a25cfb8cb47855aaa16e
This commit is contained in:
Jordan Liggitt
2021-06-04 01:11:25 -04:00
committed by Kubernetes Publisher
parent 71f81dc715
commit 5ba99a7f80
4 changed files with 244 additions and 647 deletions

View File

@@ -30,6 +30,10 @@ var alwaysRetryError = IsRetryableErrorFunc(func(_ *http.Request, _ error) bool
return true
})
var neverRetryError = IsRetryableErrorFunc(func(_ *http.Request, _ error) bool {
return false
})
func TestNextRetry(t *testing.T) {
fakeError := errors.New("fake error")
tests := []struct {